various #16
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()
|
||||
|
||||
Coordinator.load_test_credentials(DIR)
|
||||
assert (DIR.STATES / "credentials_test.json").is_file()
|
||||
|
||||
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