| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f705fd6 commit 4a4d880
27 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,22 @@ | |||
| 3 | 3 | # This module is part of GitPython and is released under the | |
| 4 | 4 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | |
| 5 | 5 | ||
| 6 | + __all__ = [ | ||
| 7 | + "fixture_path", | ||
| 8 | + "fixture", | ||
| 9 | + "StringProcessAdapter", | ||
| 10 | + "with_rw_directory", | ||
| 11 | + "with_rw_repo", | ||
| 12 | + "with_rw_and_rw_remote_repo", | ||
| 13 | + "TestBase", | ||
| 14 | + "VirtualEnvironment", | ||
| 15 | + "TestCase", | ||
| 16 | + "SkipTest", | ||
| 17 | + "skipIf", | ||
| 18 | + "GIT_REPO", | ||
| 19 | + "GIT_DAEMON_PORT", | ||
| 20 | + ] | ||
| 21 | + | ||
| 6 | 22 | import contextlib | |
| 7 | 23 | from functools import wraps | |
| 8 | 24 | import gc | |
@@ -31,22 +47,6 @@ | |||
| 31 | 47 | GIT_REPO = os.environ.get("GIT_PYTHON_TEST_GIT_REPO_BASE", ospd(ospd(ospd(__file__)))) | |
| 32 | 48 | GIT_DAEMON_PORT = os.environ.get("GIT_PYTHON_TEST_GIT_DAEMON_PORT", "19418") | |
| 33 | 49 | ||
| 34 | - __all__ = ( | ||
| 35 | - "fixture_path", | ||
| 36 | - "fixture", | ||
| 37 | - "StringProcessAdapter", | ||
| 38 | - "with_rw_directory", | ||
| 39 | - "with_rw_repo", | ||
| 40 | - "with_rw_and_rw_remote_repo", | ||
| 41 | - "TestBase", | ||
| 42 | - "VirtualEnvironment", | ||
| 43 | - "TestCase", | ||
| 44 | - "SkipTest", | ||
| 45 | - "skipIf", | ||
| 46 | - "GIT_REPO", | ||
| 47 | - "GIT_DAEMON_PORT", | ||
| 48 | - ) | ||
| 49 | - | ||
| 50 | 50 | _logger = logging.getLogger(__name__) | |
| 51 | 51 | ||
| 52 | 52 | # { Routines | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + # This module is part of GitPython and is released under the | ||
| 2 | + # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,13 +5,14 @@ | |||
| 5 | 5 | ||
| 6 | 6 | import logging | |
| 7 | 7 | import os | |
| 8 | + import os.path as osp | ||
| 8 | 9 | import tempfile | |
| 9 | 10 | ||
| 10 | 11 | from git import Repo | |
| 11 | 12 | from git.db import GitCmdObjectDB, GitDB | |
| 12 | - from test.lib import TestBase | ||
| 13 | 13 | from git.util import rmtree | |
| 14 | - import os.path as osp | ||
| 14 | + | ||
| 15 | + from test.lib import TestBase | ||
| 15 | 16 | ||
| 16 | 17 | # { Invariants | |
| 17 | 18 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,9 +10,11 @@ | |||
| 10 | 10 | from time import time | |
| 11 | 11 | import sys | |
| 12 | 12 | ||
| 13 | - from .lib import TestBigRepoRW | ||
| 14 | - from git import Commit | ||
| 15 | 13 | from gitdb import IStream | |
| 14 | + | ||
| 15 | + from git import Commit | ||
| 16 | + | ||
| 17 | + from test.performance.lib import TestBigRepoRW | ||
| 16 | 18 | from test.test_commit import TestCommitSerialization | |
| 17 | 19 | ||
| 18 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | import sys | |
| 7 | 7 | from time import time | |
| 8 | 8 | ||
| 9 | - from .lib import TestBigRepoR | ||
| 9 | + from test.performance.lib import TestBigRepoR | ||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | 12 | class TestObjDBPerformance(TestBigRepoR): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,18 +5,18 @@ | |||
| 5 | 5 | ||
| 6 | 6 | import gc | |
| 7 | 7 | import os | |
| 8 | + import os.path as osp | ||
| 8 | 9 | import subprocess | |
| 9 | 10 | import sys | |
| 10 | 11 | from time import time | |
| 11 | 12 | ||
| 12 | - from test.lib import with_rw_repo | ||
| 13 | - from git.util import bin_to_hex | ||
| 14 | 13 | from gitdb import LooseObjectDB, IStream | |
| 15 | 14 | from gitdb.test.lib import make_memory_file | |
| 16 | 15 | ||
| 17 | - import os.path as osp | ||
| 16 | + from git.util import bin_to_hex | ||
| 18 | 17 | ||
| 19 | - from .lib import TestBigRepoR | ||
| 18 | + from test.lib import with_rw_repo | ||
| 19 | + from test.performance.lib import TestBigRepoR | ||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | 22 | class TestObjDBPerformance(TestBigRepoR): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,9 +3,10 @@ | |||
| 3 | 3 | # This module is part of GitPython and is released under the | |
| 4 | 4 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | |
| 5 | 5 | ||
| 6 | - from test.lib import TestBase | ||
| 7 | 6 | from git import Actor | |
| 8 | 7 | ||
| 8 | + from test.lib import TestBase | ||
| 9 | + | ||
| 9 | 10 | ||
| 10 | 11 | class TestActor(TestBase): | |
| 11 | 12 | def test_from_string_should_separate_name_and_email(self): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,18 +5,18 @@ | |||
| 5 | 5 | ||
| 6 | 6 | import gc | |
| 7 | 7 | import os | |
| 8 | + import os.path as osp | ||
| 8 | 9 | import sys | |
| 9 | 10 | import tempfile | |
| 10 | 11 | from unittest import skipIf | |
| 11 | 12 | ||
| 12 | 13 | from git import Repo | |
| 13 | - from git.objects import Blob, Tree, Commit, TagObject | ||
| 14 | + from git.objects import Blob, Commit, TagObject, Tree | ||
| 15 | + import git.objects.base as base | ||
| 14 | 16 | from git.objects.util import get_object_type_by_name | |
| 15 | - from test.lib import TestBase as _TestBase, with_rw_repo, with_rw_and_rw_remote_repo | ||
| 16 | - from git.util import hex_to_bin, HIDE_WINDOWS_FREEZE_ERRORS | ||
| 17 | + from git.util import HIDE_WINDOWS_FREEZE_ERRORS, hex_to_bin | ||
| 17 | 18 | ||
| 18 | - import git.objects.base as base | ||
| 19 | - import os.path as osp | ||
| 19 | + from test.lib import TestBase as _TestBase, with_rw_and_rw_remote_repo, with_rw_repo | ||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | 22 | class TestBase(_TestBase): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,9 +3,10 @@ | |||
| 3 | 3 | # This module is part of GitPython and is released under the | |
| 4 | 4 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | |
| 5 | 5 | ||
| 6 | - from test.lib import TestBase | ||
| 7 | 6 | from git import Blob | |
| 8 | 7 | ||
| 8 | + from test.lib import TestBase | ||
| 9 | + | ||
| 9 | 10 | ||
| 10 | 11 | class TestBlob(TestBase): | |
| 11 | 12 | def test_mime_type_should_return_mime_type_for_known_types(self): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | 7 | import git | |
| 8 | 8 | ||
| 9 | - from .lib import ( | ||
| 10 | - TestBase, | ||
| 11 | - with_rw_directory, | ||
| 12 | - ) | ||
| 9 | + from test.lib import TestBase, with_rw_directory | ||
| 13 | 10 | ||
| 14 | 11 | ||
| 15 | 12 | class TestClone(TestBase): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments