Skip to content

Commit

Permalink
Changes to path for failure log
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithin Bodanapu committed Dec 11, 2024
1 parent 932b4f1 commit bfe9af2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests_integration/test_file_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ def load_file_from_path() -> BinaryIO:

queue.upload()

assert os.path.isfile(current_dir.joinpath(LOG_FAILURE_FILE))
assert os.path.isfile(LOG_FAILURE_FILE)

with jsonlines.open(current_dir.joinpath(LOG_FAILURE_FILE)) as reader:
with jsonlines.open(LOG_FAILURE_FILE) as reader:
for obj in reader:
assert FILE_REASON_MAP_KEY in obj
assert "Permission denied" in obj[FILE_REASON_MAP_KEY][NO_PERMISSION_FILE]

os.remove(current_dir.joinpath(LOG_FAILURE_FILE))
os.remove(LOG_FAILURE_FILE)


@pytest.mark.parametrize("functions_runtime", ["true", "false"])
Expand Down

0 comments on commit bfe9af2

Please sign in to comment.