Skip to content

Commit

Permalink
NO-REF: Setup manifest testing for MET
Browse files Browse the repository at this point in the history
  • Loading branch information
kylevillegas93 committed Jan 16, 2025
1 parent 06fbd3f commit 3e8b11c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/functional/processes/ingest/assert_ingested_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -17,3 +16,5 @@ def assert_ingested_records(source_name: str):
)

assert len(records) > 1

return records
13 changes: 10 additions & 3 deletions tests/functional/processes/ingest/test_met_process.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3e8b11c

Please sign in to comment.