Skip to content

Commit 9066712

Browse files
committed
Moved test stuff around and modified imports to just clean things up a bit.
1 parent 933d23b commit 9066712

16 files changed

+41
-50
lines changed

lib/git_python/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import inspect
22

3-
from actor import Actor
4-
from blob import Blob
5-
from commit import Commit
6-
from diff import Diff
7-
from errors import InvalidGitRepositoryError, NoSuchPathError
8-
from git import Git
9-
from head import Head
10-
from repo import Repo
11-
from stats import Stats
12-
from tag import Tag
13-
from tree import Tree
14-
from utils import shell_escape, dashify, touch
3+
from git_python.actor import Actor
4+
from git_python.blob import Blob
5+
from git_python.commit import Commit
6+
from git_python.diff import Diff
7+
from git_python.errors import InvalidGitRepositoryError, NoSuchPathError
8+
from git_python.git import Git
9+
from git_python.head import Head
10+
from git_python.repo import Repo
11+
from git_python.stats import Stats
12+
from git_python.tag import Tag
13+
from git_python.tree import Tree
14+
from git_python.utils import shell_escape, dashify, touch
1515

1616
__all__ = [ name for name, obj in locals().items()
1717
if not (name.startswith('_') or inspect.ismodule(obj)) ]

test/git/test_actor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
2-
from test.asserts import *
2+
from test.testlib import *
33
from git_python import *
4-
from test.helper import *
54

65
class TestActor(object):
76
def test_from_string_should_separate_name_and_email(self):

test/git/test_blob.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import time
2-
from mock import *
3-
from test.asserts import *
2+
from test.testlib import *
43
from git_python import *
5-
from test.helper import *
64

75
class TestBlob(object):
86
def setup(self):

test/git/test_commit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
from mock import *
2-
from test.asserts import *
1+
from test.testlib import *
32
from git_python import *
4-
from test.helper import *
53

64
class TestCommit(object):
75
def setup(self):

test/git/test_diff.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from test.asserts import *
1+
from test.testlib import *
22
from git_python import *
3-
from test.helper import *
43

54
class TestDiff(object):
65
def setup(self):

test/git/test_git.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import os
2-
from mock import *
3-
from test.asserts import *
2+
from test.testlib import *
43
from git_python import *
5-
from test.helper import *
64

75
class TestGit(object):
86
def setup(self):

test/git/test_head.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
from mock import *
2-
from test.asserts import *
1+
from test.testlib import *
32
from git_python import *
4-
from test.helper import *
53

64
class TestHead(object):
75
def setup(self):

test/git/test_repo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import os
22
import time
3-
from mock import *
4-
from test.asserts import *
3+
from test.testlib import *
54
from git_python import *
6-
from test.helper import *
75

86
class TestRepo(object):
97
def setup(self):

test/git/test_stats.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from test.asserts import *
1+
from test.testlib import *
22
from git_python import *
3-
from test.helper import *
43

54
class TestStats(object):
65
def setup(self):

test/git/test_tag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from mock import *
2-
from test.asserts import *
3-
from git_python import *
2+
from test.testlib import *
43
from test.helper import *
4+
from git_python import *
55

66
class TestTag(object):
77
def setup(self):

0 commit comments

Comments
 (0)