various #16
1 changed files with 3 additions and 7 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
import json
|
|
||||||
import os
|
|
||||||
import subprocess
|
import subprocess
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from pytest_abra.utils import load_json_to_environ
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def session_tmp_path_testout(tmp_path_factory: pytest.TempPathFactory) -> Path:
|
def session_tmp_path_testout(tmp_path_factory: pytest.TempPathFactory) -> Path:
|
||||||
|
|
@ -18,11 +18,7 @@ def test_abratest_cli_full_integration(session_tmp_path_testout: Path):
|
||||||
# --------------------- load credentials to env variables -------------------- #
|
# --------------------- load credentials to env variables -------------------- #
|
||||||
|
|
||||||
cred_file = Path("credentials.json")
|
cred_file = Path("credentials.json")
|
||||||
with open(cred_file, "r") as f:
|
load_json_to_environ(cred_file)
|
||||||
CREDENTIALS = json.load(f)
|
|
||||||
|
|
||||||
for key, value in CREDENTIALS.items():
|
|
||||||
os.environ[key] = value
|
|
||||||
|
|
||||||
# --------------------------------- env files -------------------------------- #
|
# --------------------------------- env files -------------------------------- #
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue