various #16
1 changed files with 18 additions and 0 deletions
18
tests/test_coordinator.py
Normal file
18
tests/test_coordinator.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from pytest_abra.coordinator import Coordinator
|
||||
from pytest_abra.dir_manager import DirManager
|
||||
|
||||
|
||||
def test_load_test_credentials(tmp_path: Path):
|
||||
assert "TEST_USER" not in os.environ
|
||||
|
||||
DIR = DirManager(output_dir=tmp_path, session_id="abc")
|
||||
DIR.create_all_dirs()
|
||||
|
||||
Coordinator.load_test_credentials(DIR)
|
||||
|
||||
assert "TEST_USER" in os.environ
|
||||
|
||||
assert (DIR.STATES / "credentials_test.json").is_file()
|
||||
Loading…
Add table
Add a link
Reference in a new issue