diff options
author | 2015-04-17 00:23:16 +0200 | |
---|---|---|
committer | 2015-04-17 00:23:16 +0200 | |
commit | e6fcf51f824bd476bec6106b7ad478e73be34cc5 (patch) | |
tree | bfdf96d8764004cb25c55d8d869c1c71c18703ba /tests | |
parent | [pylint] add pylint.rc file (diff) | |
download | g-sorcery-e6fcf51f824bd476bec6106b7ad478e73be34cc5.tar.gz g-sorcery-e6fcf51f824bd476bec6106b7ad478e73be34cc5.tar.bz2 g-sorcery-e6fcf51f824bd476bec6106b7ad478e73be34cc5.zip |
change DB structure
move to new DB layout with versioning
support bson format for category files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_PackageDB.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_PackageDB.py b/tests/test_PackageDB.py index 373fa4b..f73f006 100644 --- a/tests/test_PackageDB.py +++ b/tests/test_PackageDB.py @@ -4,10 +4,10 @@ """ test_PackageDB.py ~~~~~~~~~~~~~~~~ - + PackageDB test suite - - :copyright: (c) 2013 by Jauhien Piatlicki + + :copyright: (c) 2013-2015 by Jauhien Piatlicki :license: GPL-2, see LICENSE for more details. """ @@ -44,7 +44,7 @@ class TestPackageDB(BaseTest): for package in packages: orig_db.add_package(package, ebuild_data) - orig_db.write_and_manifest() + orig_db.write() os.system("cd " + orig_tempdir.name + " && tar cvzf good.tar.gz db") os.system("echo invalid >> " + orig_tempdir.name + "/db/app-test1/packages.json") os.system("cd " + orig_tempdir.name + " && tar cvzf dummy.tar.gz db") @@ -82,7 +82,7 @@ class TestPackageDB(BaseTest): self.assertEqual(data, ebuild_data) pkg_set.remove(package) self.assertTrue(not pkg_set) - + def suite(): suite = unittest.TestSuite() |