mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-24 17:16:13 +01:00
Check if we are not altering current environment
This commit is contained in:
parent
8e10e05fbd
commit
1982ce9aaf
@ -156,6 +156,14 @@ def test_regular_after_first_deps_only_is_not_supported():
|
||||
assert result.returncode > 0
|
||||
assert "not supported" in result.stderr
|
||||
|
||||
# check that "test" was not installed to current environment
|
||||
pip_freeze = subprocess.run(
|
||||
(sys.executable, "-m", "pip", "freeze"),
|
||||
encoding="utf-8",
|
||||
stdout=subprocess.PIPE,
|
||||
).stdout.splitlines()
|
||||
assert "test==0.0.0" not in pip_freeze
|
||||
|
||||
|
||||
def test_regular_recreate_after_current():
|
||||
result = tox("-e", NATIVE_TOXENV, "--current-env")
|
||||
|
Loading…
Reference in New Issue
Block a user