From 86bbec18d9a6dbd58be5e15bf5c47bbd74c8d69b Mon Sep 17 00:00:00 2001 From: Alexandros Tzannes Date: Mon, 6 Aug 2018 10:44:10 -0700 Subject: [PATCH] Factor-out decorators for class tests --- tests/integration/test_install_twists.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/integration/test_install_twists.py b/tests/integration/test_install_twists.py index d9e571e1..8653e2c0 100644 --- a/tests/integration/test_install_twists.py +++ b/tests/integration/test_install_twists.py @@ -57,6 +57,10 @@ zip_safe=False assert "six" in p.lockfile["default"] +@pytest.mark.install +@pytest.mark.local +@pytest.mark.needs_internet +@flaky class TestDependencyLinks(object): """Ensure dependency_links are parsed and installed. @@ -93,10 +97,6 @@ setup( assert "version" in pipenv_instance.lockfile["default"]["test-private-dependency"] assert "0.1" in pipenv_instance.lockfile["default"]["test-private-dependency"]["version"] - @pytest.mark.install - @pytest.mark.local - @pytest.mark.needs_internet - @flaky def test_https_dependency_links_install(self, PipenvInstance, pypi): """Ensure dependency_links are parsed and installed (needed for private repo dependencies). """ @@ -107,11 +107,7 @@ setup( 'git+https://github.com/atzannes/test-private-dependency@v0.1#egg=test-private-dependency-v0.1' ) - @pytest.mark.install - @pytest.mark.local - @pytest.mark.needs_internet @pytest.mark.needs_github_ssh - @flaky def test_ssh_dependency_links_install(self, PipenvInstance, pypi): with temp_environ(), PipenvInstance(pypi=pypi, chdir=True) as p: os.environ['PIP_PROCESS_DEPENDENCY_LINKS'] = '1'