diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-05-30 18:19:44 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-05-30 18:20:48 +0200 |
commit | c192638aae09c1b5c087d67cc99dd4c7ec4ed916 (patch) | |
tree | 470ec82de0142c26ea333a11d954a04c6f631f9f /git/test/db/py/test_pack.py | |
parent | 2bfc2e99111ef0e31f2bfda8a01c261a4f3f67cf (diff) | |
download | gitpython-c192638aae09c1b5c087d67cc99dd4c7ec4ed916.tar.gz |
Fixed all remaining python repository tests
Diffstat (limited to 'git/test/db/py/test_pack.py')
-rw-r--r-- | git/test/db/py/test_pack.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/git/test/db/py/test_pack.py b/git/test/db/py/test_pack.py index 4854c4e7..5043f446 100644 --- a/git/test/db/py/test_pack.py +++ b/git/test/db/py/test_pack.py @@ -2,8 +2,9 @@ # # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php -from lib import * -from git.db.py import PurePackedODB +from git.test.db.lib import TestDBBase, with_packs_rw + +from git.db.py.pack import PurePackedODB from git.test.lib import fixture_path from git.exc import BadObject, AmbiguousObjectName @@ -13,12 +14,15 @@ import random class TestPackDB(TestDBBase): + needs_ro_repo = False + @with_packs_rw def test_writing(self, path): pdb = PurePackedODB(path) # on demand, we init our pack cache num_packs = len(pdb.entities()) + assert num_packs assert pdb._st_mtime != 0 # test pack directory changed: |