Skip to content

Commit

Permalink
Adjust unit test with warning instead of failed CLI run
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhoey committed Aug 21, 2023
1 parent 9bcf21f commit 5278b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vptstools/bin/vph5_to_vpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def cli(modified_days_ago):
h5_path = OdimFilePath.from_s3fs_enlisting(file_key)
h5_local_path = str(temp_folder_path / h5_path.file_name)
# inbo_s3.get_file(file_key, h5_local_path)
# s3f3 failes in wrapped moto environment; fall back to boto3
# s3f3 fails in wrapped moto environment; fall back to boto3
s3_client.download_file(
S3_BUCKET,
f"{h5_path.s3_folder_path_h5}/{h5_path.file_name}",
Expand Down
3 changes: 2 additions & 1 deletion tests/test_vph5_to_vpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ def test_e2e_cli_all(s3_inventory, path_inventory, tmp_path, sns):
assert "Create 5 daily vpts files" in result.output
assert "Recreate the full set of bucket files" in result.output
# test fails/stops after creation of first daily file (only files provided for test)
assert result.exception is not None
assert "[WARNING] - During conversion" in result.output
assert result.exception is None
# TODO - check if notification is sent to the SNS-TOPIC (currently only sent to mocked endpoint)

0 comments on commit 5278b88

Please sign in to comment.