Skip to content

Commit 47ed19f

Browse files
committed
updated METS package publishing + tests
1 parent badad56 commit 47ed19f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/features/notice_publisher/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
6363
def 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"

0 commit comments

Comments
 (0)