diff options
-rw-r--r-- | tests/doctests/__init__.py | 0 | ||||
-rw-r--r-- | tests/doctests/test_Changelog.py (renamed from tests/test_Changelog.py) | 6 | ||||
-rw-r--r-- | tests/doctests/test_Config.py (renamed from tests/test_Config.py) | 2 | ||||
-rw-r--r-- | tests/doctests/test_Control.py (renamed from tests/test_Control.py) | 2 | ||||
-rw-r--r-- | tests/doctests/test_GitModifier.py (renamed from tests/test_GitModifier.py) | 2 | ||||
-rw-r--r-- | tests/doctests/test_GitRepository.py (renamed from tests/test_GitRepository.py) | 2 | ||||
-rw-r--r-- | tests/doctests/test_GitVfs.py (renamed from tests/test_GitVfs.py) | 2 | ||||
-rw-r--r-- | tests/doctests/test_PristineTar.py (renamed from tests/test_PristineTar.py) | 2 | ||||
-rw-r--r-- | tests/doctests/test_create_remote_repo.py (renamed from tests/27_test_create_remote_repo.py) | 0 |
9 files changed, 9 insertions, 9 deletions
diff --git a/tests/doctests/__init__.py b/tests/doctests/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/doctests/__init__.py diff --git a/tests/test_Changelog.py b/tests/doctests/test_Changelog.py index fa712746..9525e76d 100644 --- a/tests/test_Changelog.py +++ b/tests/doctests/test_Changelog.py @@ -3,7 +3,7 @@ """ Test L{gbp.deb.changelog.ChangeLog} """ -from . import context # noqa: 401 +from .. import context # noqa: 401 import os import nose @@ -237,7 +237,7 @@ def test_add_section(): >>> import tempfile >>> import shutil >>> import gbp.deb.changelog - >>> from .testutils import OsReleaseFile + >>> from ..testutils import OsReleaseFile >>> os_release = OsReleaseFile('/etc/lsb-release') >>> olddir = os.path.abspath(os.path.curdir) >>> testdir = tempfile.mkdtemp(prefix='gbp-test-changelog-') @@ -284,7 +284,7 @@ def test_add_entry(): >>> import tempfile >>> import shutil >>> import gbp.deb.changelog - >>> from .testutils import OsReleaseFile + >>> from ..testutils import OsReleaseFile >>> os_release = OsReleaseFile('/etc/lsb-release') >>> olddir = os.path.abspath(os.path.curdir) >>> testdir = tempfile.mkdtemp(prefix='gbp-test-changelog-') diff --git a/tests/test_Config.py b/tests/doctests/test_Config.py index 495862c7..d985d830 100644 --- a/tests/test_Config.py +++ b/tests/doctests/test_Config.py @@ -5,7 +5,7 @@ Test L{gbp.config.GbpOptionParser} Test L{gbp.config.GbpOptionParserDebian} """ -from . import context # noqa: F401 +from .. import context # noqa: F401 def test_option_parser(): diff --git a/tests/test_Control.py b/tests/doctests/test_Control.py index da70b1e9..3e1b0829 100644 --- a/tests/test_Control.py +++ b/tests/doctests/test_Control.py @@ -4,7 +4,7 @@ Test L{gbp.deb.control.Control} """ -from . import context # noqa: 401 +from .. import context # noqa: 401 cl_debian = """Source: git-buildpackage Section: vcs diff --git a/tests/test_GitModifier.py b/tests/doctests/test_GitModifier.py index 5c3eb406..06a31c70 100644 --- a/tests/test_GitModifier.py +++ b/tests/doctests/test_GitModifier.py @@ -4,7 +4,7 @@ Test L{gbp.git.GitModifier} """ -from . import context # noqa: F401 +from .. import context # noqa: F401 def test_author(): diff --git a/tests/test_GitRepository.py b/tests/doctests/test_GitRepository.py index 5545cd05..bd7c005a 100644 --- a/tests/test_GitRepository.py +++ b/tests/doctests/test_GitRepository.py @@ -11,7 +11,7 @@ This testcase creates several repositores: - A mirror of I{repo} below I{mirror_dirs['clone']} called I{mirror} """ -from . import context +from .. import context import gbp.log diff --git a/tests/test_GitVfs.py b/tests/doctests/test_GitVfs.py index df8c042b..fb845e58 100644 --- a/tests/test_GitVfs.py +++ b/tests/doctests/test_GitVfs.py @@ -6,7 +6,7 @@ Test L{gbp.git.GitVfs} import gbp.log -from . import context # noqa: F401 +from .. import context # noqa: F401 gbp.log.setup(color=False, verbose=True) diff --git a/tests/test_PristineTar.py b/tests/doctests/test_PristineTar.py index 6a2ec087..ab94ca1c 100644 --- a/tests/test_PristineTar.py +++ b/tests/doctests/test_PristineTar.py @@ -15,7 +15,7 @@ This testcase creates this reposity: """ import os -from . import context +from .. import context test_data = os.path.join(context.projectdir, "tests/test_PristineTar_data") diff --git a/tests/27_test_create_remote_repo.py b/tests/doctests/test_create_remote_repo.py index 8188fb3c..8188fb3c 100644 --- a/tests/27_test_create_remote_repo.py +++ b/tests/doctests/test_create_remote_repo.py |