Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Jul 26, 2024
1 parent 08482c8 commit f866a6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ def firecrest_computer(myfirecrest, tmpdir: Path):
token_uri="https://TOKEN_URI",
client_id="CLIENT_ID",
client_secret=str(_secret_path),
client_machine="MACHINE_NAME",
compute_resource="MACHINE_NAME",
small_file_size_mb=1.0,
temp_directory=str(_temp_directory),
api_version="2",
)
computer.store()
return computer
Expand Down
5 changes: 3 additions & 2 deletions tests/test_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_validate_temp_directory(myfirecrest, monkeypatch, tmpdir: Path):
"url": "http://test.com",
"token_uri": "token_uri",
"client_id": "client_id",
"client_machine": "client_machine",
"compute_resource": "compute_resource",
"client_secret": secret_file.as_posix(),
"small_file_size_mb": float(10),
}
Expand Down Expand Up @@ -106,9 +106,10 @@ def test_dynamic_info(myfirecrest, monkeypatch, tmpdir: Path):
"url": "http://test.com",
"token_uri": "token_uri",
"client_id": "client_id",
"client_machine": "client_machine",
"compute_resource": "compute_resource",
"client_secret": secret_file.as_posix(),
"small_file_size_mb": float(10),
"temp_directory": "temp_directory",
}

# should catch UTILITIES_MAX_FILE_SIZE if value is not provided
Expand Down

0 comments on commit f866a6f

Please sign in to comment.