Skip to content

Commit

Permalink
IOP: repo test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Aug 14, 2024
1 parent 84a3aea commit b5bc870
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/integration/iop/test_iop_dag_pull_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_dag_run(dag, dag_was_paused: bool, iop_empty_repo):
"pdf": "extracted/2022-09-24T03_01_43_content/1674-1137/1674-1137_46/1674-1137_46_10/1674-1137_46_10_103108/cpc_46_10_103108.pdf",
"xml": "extracted/2022-09-24T03_01_43_content/1674-1137/1674-1137_46/1674-1137_46_10/1674-1137_46_10_103108/cpc_46_10_103108.xml",
},
{"xml": "extracted/aca95c.xml/aca95c.xml"},
{"xml": "extracted/aca95c/aca95c.xml"},
]

assert sorted(iop_empty_repo.find_all(), key=lambda x: x.get("xml", "")) == sorted(
Expand Down Expand Up @@ -155,7 +155,7 @@ def test_dag_migrate_from_FTP(iop_empty_repo):
"pdf": "extracted/2022-09-24T03_01_43_content/1674-1137/1674-1137_46/1674-1137_46_10/1674-1137_46_10_103108/cpc_46_10_103108.pdf",
"xml": "extracted/2022-09-24T03_01_43_content/1674-1137/1674-1137_46/1674-1137_46_10/1674-1137_46_10_103108/cpc_46_10_103108.xml",
},
{"xml": "extracted/aca95c.xml/aca95c.xml"},
{"xml": "extracted/aca95c/aca95c.xml"},
]
for (file_from_repo, expected_file) in zip(
iop_empty_repo.find_all(), expected_files
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/iop/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_pull_from_sftp(iop_empty_repo):
"pdf": "extracted/2022-09-24T03_01_43_content/1674-1137/1674-1137_46/1674-1137_46_10/1674-1137_46_10_103108/cpc_46_10_103108.pdf",
"xml": "extracted/2022-09-24T03_01_43_content/1674-1137/1674-1137_46/1674-1137_46_10/1674-1137_46_10_103108/cpc_46_10_103108.xml",
},
{"xml": "extracted/aca95c.xml/aca95c.xml"},
{"xml": "extracted/aca95c/aca95c.xml"},
]
assert iop_empty_repo.find_all() == expected_files
assert sorted(iop_empty_repo.get_all_raw_filenames()) == sorted(
Expand All @@ -84,6 +84,6 @@ def test_pull_from_sftp(iop_empty_repo):
"2022-09-01T03_01_40_content.zip",
"2022-09-03T03_01_49_content.zip",
"2022-09-24T03_01_43_content.zip",
"aca95c.xml.zip",
"aca95c.zip",
]
)
2 changes: 1 addition & 1 deletion tests/units/iop/test_iop_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def test_iop_sftp_path():
"2022-09-01T03_01_40_content.zip",
"2022-09-03T03_01_49_content.zip",
"2022-09-24T03_01_43_content.zip",
"aca95c.xml.zip",
"aca95c.zip",
]
)

0 comments on commit b5bc870

Please sign in to comment.