summaryrefslogtreecommitdiff
path: root/git/test/db/py/test_git.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-05-30 18:19:44 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-05-30 18:20:48 +0200
commitc192638aae09c1b5c087d67cc99dd4c7ec4ed916 (patch)
tree470ec82de0142c26ea333a11d954a04c6f631f9f /git/test/db/py/test_git.py
parent2bfc2e99111ef0e31f2bfda8a01c261a4f3f67cf (diff)
downloadgitpython-c192638aae09c1b5c087d67cc99dd4c7ec4ed916.tar.gz
Fixed all remaining python repository tests
Diffstat (limited to 'git/test/db/py/test_git.py')
-rw-r--r--git/test/db/py/test_git.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/git/test/db/py/test_git.py b/git/test/db/py/test_git.py
index 524d4080..ecaa5c8f 100644
--- a/git/test/db/py/test_git.py
+++ b/git/test/db/py/test_git.py
@@ -3,7 +3,7 @@
# This module is part of GitDB and is released under
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
from git.test.lib import rorepo_dir
-from git.test.db.lib import *
+from git.test.db.lib import TestDBBase, with_rw_directory
from git.exc import BadObject
from git.db.py.complex import PureGitODB
from git.base import OStream, OInfo
@@ -12,10 +12,10 @@ from git.util import hex_to_bin, bin_to_hex
import os
class TestGitDB(TestDBBase):
- RepoCls = PureGitODB
+ needs_ro_repo = False
def test_reading(self):
- gdb = self.RepoCls(os.path.join(rorepo_dir(), 'objects'))
+ gdb = PureGitODB(os.path.join(rorepo_dir(), 'objects'))
# we have packs and loose objects, alternates doesn't necessarily exist
assert 1 < len(gdb.databases()) < 4
@@ -44,7 +44,7 @@ class TestGitDB(TestDBBase):
@with_rw_directory
def test_writing(self, path):
- gdb = self.RepoCls(path)
+ gdb = PureGitODB(path)
# its possible to write objects
self._assert_object_writing(gdb)