From 3e8b11c8862dc097773c4ab87d5e5823ca7d5dbb Mon Sep 17 00:00:00 2001 From: kyle Date: Thu, 16 Jan 2025 10:26:29 -0500 Subject: [PATCH] NO-REF: Setup manifest testing for MET --- .../processes/ingest/assert_ingested_records.py | 5 +++-- .../functional/processes/ingest/test_met_process.py | 13 ++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/functional/processes/ingest/assert_ingested_records.py b/tests/functional/processes/ingest/assert_ingested_records.py index be9aa5b361..ae47f83fdf 100644 --- a/tests/functional/processes/ingest/assert_ingested_records.py +++ b/tests/functional/processes/ingest/assert_ingested_records.py @@ -2,9 +2,8 @@ from managers import DBManager from model import Record -from processes.core import CoreProcess -def assert_ingested_records(source_name: str): +def assert_ingested_records(source_name: str) -> list[Record]: db_manager = DBManager() db_manager.generateEngine() db_manager.createSession() @@ -17,3 +16,5 @@ def assert_ingested_records(source_name: str): ) assert len(records) > 1 + + return records diff --git a/tests/functional/processes/ingest/test_met_process.py b/tests/functional/processes/ingest/test_met_process.py index cb95e73994..680e4241f8 100644 --- a/tests/functional/processes/ingest/test_met_process.py +++ b/tests/functional/processes/ingest/test_met_process.py @@ -1,10 +1,17 @@ -from processes import LOCProcess +from processes import METProcess from .assert_ingested_records import assert_ingested_records def test_met_process(): - met_process = LOCProcess('complete', None, None, None, 5, None) + met_process = METProcess('complete', None, None, None, 5, None) met_process.runProcess() - assert_ingested_records(source_name='loc') + records = assert_ingested_records(source_name='met') + + # assert that for each record there exists a PDF manifest in S3 + + # run the S3 process + + # assert that for each record, we have saved the PDF in S3 +