File tree Expand file tree Collapse file tree
tests/features/notice_publisher Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def mongodb_client():
2626
2727
2828@pytest .fixture (scope = "function" )
29- def publish_eligible_notice (publicly_available_notice ) -> Notice :
29+ def publish_eligible_notice (publicly_available_notice , mets_package_published_name ) -> Notice :
3030 notice = publicly_available_notice
3131 notice .update_status_to (NoticeStatus .ELIGIBLE_FOR_PUBLISHING )
3232 notice ._mets_manifestation = METSManifestation (
3333 object_data = base64 .b64encode ("METS manifestation content" .encode ("utf-8" )),
34- package_name = "test_package.zip"
34+ package_name = mets_package_published_name
3535 )
3636 return notice
3737
@@ -56,9 +56,9 @@ def s3_bucket_name():
5656 return "tmp-test-bucket"
5757
5858@pytest .fixture
59- def mets_package_published_name (publish_eligible_notice ):
60- return f" { publish_eligible_notice . ted_id } .zip"
59+ def mets_package_published_name ():
60+ return "test_package .zip"
6161
6262@pytest .fixture
6363def rdf_manifestation_published_name (publish_eligible_notice ):
64- return f"{ publish_eligible_notice .ted_id } .ttl"
64+ return f"{ publish_eligible_notice .ted_id } .ttl"
You can’t perform that action at this time.
0 commit comments