Skip to content

Commit 9ca0f89

Browse files
committed
Updated MANIFEST and setup to include fixtures. Adjusted includes in all tests to work with the new directory structure
1 parent 83a9e4a commit 9ca0f89

22 files changed

+25
-26
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ include LICENSE
33
include CHANGES
44
include AUTHORS
55
include README
6+
7+
graft test/fixtures

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def _stamp_version(filename):
6565
url = "http://gitorious.org/projects/git-python/",
6666
packages = ['git.'+p for p in find_packages('.')],
6767
py_modules = ['git.'+f[:-3] for f in os.listdir('.') if f.endswith('.py')],
68+
package_data = {'git.test' : ['fixtures/*']},
6869
package_dir = {'git':''},
6970
license = "BSD License",
7071
requires=('gitdb (>=0.5.1)',),

test/performance/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Contains library functions"""
22
import os
3-
from test.testlib import *
3+
from git.test.lib import *
44
import shutil
55
import tempfile
66

test/performance/test_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from lib import *
88
from git import *
99
from gitdb import IStream
10-
from test.git.test_commit import assert_commit_serialization
10+
from git.test.test_commit import assert_commit_serialization
1111
from cStringIO import StringIO
1212
from time import time
1313
import sys

test/performance/test_streams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Performance data streaming performance"""
22

3-
from test.testlib import *
3+
from git.test.lib import *
44
from gitdb import *
55
from gitdb.util import bin_to_hex
66

test/test_actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
import os
8-
from test.testlib import *
8+
from git.test.lib import *
99
from git import *
1010

1111
class TestActor(object):

test/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import git.refs as refs
99
import os
1010

11-
from test.testlib import *
11+
from git.test.lib import *
1212
from git import *
1313
from itertools import chain
1414
from git.objects.util import get_object_type_by_name

test/test_blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7-
from test.testlib import *
7+
from git.test.lib import *
88
from git import *
99
from gitdb.util import hex_to_bin
1010

test/test_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This module is part of GitPython and is released under
66
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
77

8-
from test.testlib import *
8+
from git.test.lib import *
99
from git import *
1010
from gitdb import IStream
1111
from gitdb.util import hex_to_bin

test/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7-
from test.testlib import *
7+
from git.test.lib import *
88
from git import *
99
import StringIO
1010
from copy import copy

test/test_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6-
from test.testlib import *
6+
from git.test.lib import *
77
from git.db import *
88
from gitdb.util import bin_to_hex
99
from git.exc import BadObject

test/test_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7-
from test.testlib import *
7+
from git.test.lib import *
88
from git import *
99

1010
class TestDiff(TestBase):

test/test_fun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from test.testlib import *
1+
from git.test.lib import *
22
from git.objects.fun import (
33
traverse_tree_recursive,
44
traverse_trees_recursive,

test/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
import os, sys
8-
from test.testlib import *
8+
from git.test.lib import *
99
from git import Git, GitCommandError
1010

1111
class TestGit(TestCase):

test/test_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7-
from test.testlib import *
7+
from git.test.lib import *
88
from git import *
99
import inspect
1010
import os

test/test_refs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
from mock import *
8-
from test.testlib import *
8+
from git.test.lib import *
99
from git import *
1010
import git.refs as refs
1111
from git.objects.tag import TagObject

test/test_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7-
from test.testlib import *
7+
from git.test.lib import *
88
from git import *
99
from git.util import IterableList
1010
import tempfile

test/test_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6-
from test.testlib import *
6+
from git.test.lib import *
77
from git import *
88
from git.util import join_path_native
99
from git.exc import BadObject

test/test_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7-
from test.testlib import *
7+
from git.test.lib import *
88
from git import *
99

1010
class TestStats(TestBase):

test/test_submodule.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This module is part of GitPython and is released under
22
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
33

4-
from test.testlib import *
4+
from git.test.lib import *
55
from git.exc import *
66
from git.objects.submodule.base import Submodule
77
from git.objects.submodule.root import RootModule
@@ -12,7 +12,7 @@
1212

1313
class TestSubmodule(TestBase):
1414

15-
k_subm_current = "45c0f285a6d9d9214f8167742d12af2855f527fb"
15+
k_subm_current = "83a9e4a0dad595188ff3fb35bc3dfc4d931eff6d"
1616
k_subm_changed = "394ed7006ee5dc8bddfd132b64001d5dfc0ffdd3"
1717
k_no_subm_tag = "0.1.6"
1818

@@ -32,7 +32,7 @@ def _do_base_tests(self, rwrepo):
3232
# at a different time, there is None
3333
assert len(Submodule.list_items(rwrepo, self.k_no_subm_tag)) == 0
3434

35-
assert sm.path == 'lib/git/ext/gitdb'
35+
assert sm.path == 'ext/gitdb'
3636
assert sm.path != sm.name # in our case, we have ids there, which don't equal the path
3737
assert sm.url == 'git://gitorious.org/git-python/gitdb.git'
3838
assert sm.branch_path == 'refs/heads/master' # the default ...
@@ -298,10 +298,6 @@ def _do_base_tests(self, rwrepo):
298298
assert nsm.path == nmp
299299
assert rwrepo.submodules[0].path == nmp
300300

301-
# move it back - but there is a file now - this doesn't work
302-
# as the empty directories where removed.
303-
self.failUnlessRaises(IOError, open, abspmp, 'w')
304-
305301
mpath = 'newsubmodule'
306302
absmpath = join_path_native(rwrepo.working_tree_dir, mpath)
307303
open(absmpath, 'w').write('')

test/test_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

77
import os
8-
from test.testlib import *
8+
from git.test.lib import *
99
from git import *
1010
from git.objects.fun import (
1111
traverse_tree_recursive,

test/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88
import tempfile
99

10-
from test.testlib import *
10+
from git.test.lib import *
1111
from git.util import *
1212
from git.objects.util import *
1313
from git import *

0 commit comments

Comments
 (0)