Skip to content

Commit a83824a

Browse files
fix notice publisher test with new METS package name
1 parent 342deca commit a83824a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/features/notice_publisher/test_notice_publisher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def the_notice_publication_by_id_is_executed(publish_notice_id, notice_repositor
7878
def the_mets_package_available_in_a_shared_sftp_drive(published_notice: Notice, sftp_remote_folder_path):
7979
"""the METS package available in a shared SFTP drive."""
8080
publisher: SFTPPublisher = SFTPPublisher()
81-
remote_notice_path = f"{sftp_remote_folder_path}/{published_notice.ted_id}.zip"
81+
assert published_notice.mets_manifestation
82+
remote_notice_path = f"{sftp_remote_folder_path}/{published_notice.mets_manifestation.package_name}"
8283
publisher.connect()
8384
assert publisher.exists(remote_path=remote_notice_path)
8485
publisher.disconnect()

0 commit comments

Comments
 (0)