diff options
author | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-07-02 14:26:25 +0200 |
---|---|---|
committer | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-07-02 14:26:25 +0200 |
commit | 7c3f2ef461e92ef610ea835997c21921a8b4d05f (patch) | |
tree | e06e3a823c6320f62fae9c326a538b2bf98bdd8f /tests/test_backend.py | |
parent | g_elpa/elpa_db: add_category to higher level (diff) | |
download | g-sorcery-7c3f2ef461e92ef610ea835997c21921a8b4d05f.tar.gz g-sorcery-7c3f2ef461e92ef610ea835997c21921a8b4d05f.tar.bz2 g-sorcery-7c3f2ef461e92ef610ea835997c21921a8b4d05f.zip |
base class for tests and initial commit for py2 compatibility module
Diffstat (limited to 'tests/test_backend.py')
-rw-r--r-- | tests/test_backend.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/test_backend.py b/tests/test_backend.py index 65e136d..2c28f79 100644 --- a/tests/test_backend.py +++ b/tests/test_backend.py @@ -17,6 +17,8 @@ from g_sorcery import backend, ebuild, metadata, package_db from tests import test_ebuild, test_metadata +from tests.base import BaseTest + class DummyBackend(backend.Backend): def __init__(self, PackageDB, EbuildGenrator, MetadataGenerator, directory, sync_db=True, eclass_dir=""): @@ -24,14 +26,8 @@ class DummyBackend(backend.Backend): sync_db=sync_db, eclass_dir=eclass_dir) -class TestBackend(unittest.TestCase): +class TestBackend(BaseTest): - def setUp(self): - self.tempdir = tempfile.TemporaryDirectory() - - def tearDown(self): - del self.tempdir - def test_list_eclasses(self): backend = DummyBackend(package_db.PackageDB, ebuild.EbuildGenerator, metadata.MetadataGenerator, |