mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-24 09:06:15 +01:00
Test more X after Y situations
This commit is contained in:
parent
45bac2d3ee
commit
e4fb2d79e0
@ -149,6 +149,14 @@ def test_regular_after_current_is_not_supported():
|
||||
assert "not supported" in result.stderr
|
||||
|
||||
|
||||
def test_regular_after_first_deps_only_is_not_supported():
|
||||
result = tox("-e", NATIVE_TOXENV, "--print-deps-only")
|
||||
assert result.stdout.splitlines()[0] == "six"
|
||||
result = tox("-e", NATIVE_TOXENV, prune=False, check=False)
|
||||
assert result.returncode > 0
|
||||
assert "not supported" in result.stderr
|
||||
|
||||
|
||||
def test_regular_recreate_after_current():
|
||||
result = tox("-e", NATIVE_TOXENV, "--current-env")
|
||||
assert result.stdout.splitlines()[0] == NATIVE_EXECUTABLE
|
||||
@ -184,13 +192,16 @@ def test_current_after_deps_only():
|
||||
assert result.stdout.splitlines()[0] == NATIVE_EXECUTABLE
|
||||
|
||||
|
||||
def test_regular_after_deps_only():
|
||||
def test_regular_recreate_after_deps_only():
|
||||
result = tox("-e", NATIVE_TOXENV, "--print-deps-only")
|
||||
assert "bin/python" not in result.stdout
|
||||
assert "six" in result.stdout
|
||||
|
||||
result = tox("-re", NATIVE_TOXENV, prune=False)
|
||||
assert result.stdout.splitlines()[0] != NATIVE_EXECUTABLE
|
||||
sitelib = DOT_TOX / f"{NATIVE_TOXENV}/lib/python3.{NATIVE_TOXENV[-1]}/site-packages"
|
||||
assert sitelib.is_dir()
|
||||
assert len(list(sitelib.glob("test-*.dist-info"))) == 1
|
||||
|
||||
result = tox("-e", NATIVE_TOXENV, "--print-deps-only", prune=False)
|
||||
assert "bin/python" not in result.stdout
|
||||
|
Loading…
Reference in New Issue
Block a user