Remove tests with --sequential

This commit is contained in:
Oz N Tiram
2022-09-09 22:56:55 +02:00
parent a38d1538c5
commit 3eacea2f49
2 changed files with 0 additions and 76 deletions
-52
View File
@@ -103,58 +103,6 @@ setup(
)
@pytest.mark.install
@pytest.mark.multiprocessing
def test_multiprocess_bug_and_install(pipenv_instance_pypi):
with temp_environ():
os.environ["PIPENV_MAX_SUBPROCESS"] = "2"
with pipenv_instance_pypi(chdir=True) as p:
with open(p.pipfile_path, "w") as f:
contents = """
[packages]
pytz = "*"
six = "*"
dataclasses-json = "*"
""".strip()
f.write(contents)
c = p.pipenv("install")
assert c.returncode == 0
assert "pytz" in p.lockfile["default"]
assert "six" in p.lockfile["default"]
assert "dataclasses-json" in p.lockfile["default"]
c = p.pipenv('run python -c "import six; import pytz; import dataclasses_json;"')
assert c.returncode == 0
@pytest.mark.install
@pytest.mark.sequential
def test_sequential_mode(pipenv_instance_pypi):
with pipenv_instance_pypi(chdir=True) as p:
with open(p.pipfile_path, "w") as f:
contents = """
[packages]
six = "*"
urllib3 = "*"
pytz = "*"
""".strip()
f.write(contents)
c = p.pipenv("install --sequential")
assert c.returncode == 0
assert "six" in p.lockfile["default"]
assert "pytz" in p.lockfile["default"]
assert "urllib3" in p.lockfile["default"]
c = p.pipenv('run python -c "import six; import urllib3; import pytz;"')
assert c.returncode == 0
@pytest.mark.run
@pytest.mark.install
def test_normalize_name_install(pipenv_instance_private_pypi):
-24
View File
@@ -70,30 +70,6 @@ six = "*"
assert lockfile_content == p.lockfile
@pytest.mark.sync
@pytest.mark.lock
def test_sync_sequential_detect_errors(pipenv_instance_private_pypi):
with pipenv_instance_private_pypi() as p:
with open(p.pipfile_path, 'w') as f:
contents = """
[packages]
requests = "*"
""".strip()
f.write(contents)
c = p.pipenv('lock')
assert c.returncode == 0
# Force hash mismatch when installing `requests`
lock = p.lockfile
lock['default']['requests']['hashes'] = ['sha256:' + '0' * 64]
with open(p.lockfile_path, 'w') as f:
json.dump(lock, f)
c = p.pipenv('sync --sequential')
assert c.returncode != 0
@pytest.mark.sync
def test_sync_consider_pip_target(pipenv_instance_pypi):
"""