improve test
This commit is contained in:
parent
0af72d13a7
commit
616fe8a491
1 changed files with 7 additions and 1 deletions
|
|
@ -12,7 +12,13 @@ def test_load_test_credentials(tmp_path: Path):
|
||||||
DIR.create_all_dirs()
|
DIR.create_all_dirs()
|
||||||
|
|
||||||
Coordinator.load_test_credentials(DIR)
|
Coordinator.load_test_credentials(DIR)
|
||||||
|
assert (DIR.STATES / "credentials_test.json").is_file()
|
||||||
|
|
||||||
assert "TEST_USER" in os.environ
|
assert "TEST_USER" in os.environ
|
||||||
|
test_user_before = os.environ["TEST_USER"]
|
||||||
|
|
||||||
assert (DIR.STATES / "credentials_test.json").is_file()
|
os.environ.clear()
|
||||||
|
assert "TEST_USER" not in os.environ
|
||||||
|
|
||||||
|
Coordinator.load_test_credentials(DIR)
|
||||||
|
assert test_user_before == os.environ["TEST_USER"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue