Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonavellecuerdo committed Nov 18, 2024
1 parent e1e777f commit eb21898
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This text file represents a transform log file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This text file represents a transform log file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This text file represents a transform log file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This text file represents a transform log file.

This file was deleted.

16 changes: 6 additions & 10 deletions tests/test_webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,12 @@ def test_run_route_load_transformation_logs(
_response = webapp_client.get(f"/run/{webapp_run_timestamp}")
args, kwargs = mock_render.call_args

assert (
"docker_image: transmogrifier-best-job-008e20c:latest | source: alma | "
"input_file: s3://timdex-extract-prod-300442551476/alma/alma-2024-08-29-daily"
"-extracted-records-to-index.xml" in kwargs["transform_logs"]
)
assert (
"docker_image: transmogrifier-best-job-395e612:latest | source: alma | "
"input_file: s3://timdex-extract-prod-300442551476/alma/alma-2024-08-29-daily"
"-extracted-records-to-index.xml" in kwargs["transform_logs"]
)
assert set(kwargs["transform_logs"]) == {
"alma-2024-08-29-daily-aaaaaa123456-logs.txt",
"alma-2024-08-29-daily-bbbbbb123456-logs.txt",
"dspace-2024-10-14-daily-cccccc123456-logs.txt",
"dspace-2024-10-14-daily-dddddd123456-logs.txt",
}


def test_shutdown_route_success(caplog, webapp_client):
Expand Down

0 comments on commit eb21898

Please sign in to comment.