remove os.environ.clear() -> breaks context fixture
This commit is contained in:
parent
e0d2b7cd21
commit
89a8b8d3e3
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ def test_load_test_credentials(tmp_path: Path):
|
||||||
assert "TEST_USER" in os.environ
|
assert "TEST_USER" in os.environ
|
||||||
test_user_before = os.environ["TEST_USER"]
|
test_user_before = os.environ["TEST_USER"]
|
||||||
|
|
||||||
os.environ.clear()
|
# os.environ.clear() # this breaks pytest!
|
||||||
|
del os.environ["TEST_USER"]
|
||||||
assert "TEST_USER" not in os.environ
|
assert "TEST_USER" not in os.environ
|
||||||
|
|
||||||
Coordinator.load_test_credentials(DIR)
|
Coordinator.load_test_credentials(DIR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue