diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-30 03:47:13 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2017-06-30 03:47:13 +0300 |
commit | e34c5f770cc3bc48db7a4d62583e6ac738a48575 (patch) | |
tree | f3c5c6f8509cb0350c889b0398c09e112c24571e /tests/test_init.py | |
parent | Added README (diff) | |
download | pomu-e34c5f770cc3bc48db7a4d62583e6ac738a48575.tar.gz pomu-e34c5f770cc3bc48db7a4d62583e6ac738a48575.tar.bz2 pomu-e34c5f770cc3bc48db7a4d62583e6ac738a48575.zip |
Fix unit tests
Diffstat (limited to 'tests/test_init.py')
-rw-r--r-- | tests/test_init.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_init.py b/tests/test_init.py index 5f0bd2d..0c68324 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -30,6 +30,7 @@ class PlainRepoInitialization(unittest.TestCase): class PortageRepoInitialization(unittest.TestCase): def setUp(self): + pomu_active_repo._drop() os.environ['EROOT'] = REPO_PATH os.environ['ROOT'] = REPO_PATH os.environ['PORTAGE_CONFIGROOT'] = REPO_PATH @@ -49,4 +50,5 @@ class PortageRepoInitialization(unittest.TestCase): def testPortageCreate(self): self.assertTrue(init_portage_repo(True, REPO_DIR, REPO_PATH).is_ok()) importlib.reload(portage) - self.assertEqual(pomu_active_repo(), REPO_DIR) + repo = pomu_active_repo() + self.assertEqual(repo.name, REPO_DIR) |