Skip to content

Commit

Permalink
adds schema version hack to integration test (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
mekhlakapoor authored Oct 23, 2024
1 parent 3ebb3f4 commit c9bdbcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/bergamo/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import unittest
from pathlib import Path

from aind_data_schema.core.session import Session
from aind_metadata_mapper.bergamo.models import JobSettings
from aind_metadata_mapper.bergamo.session import BergamoEtl

Expand All @@ -28,6 +29,9 @@ def setUpClass(cls) -> None:
"""Set up the class."""
with open(EXPECTED_OUTPUT_FILE_PATH, "r") as f:
expected_output_json = json.load(f)
expected_output_json["schema_version"] = Session.model_fields[
"schema_version"
].default
cls.expected_output = expected_output_json

def test_run_job(self):
Expand Down

0 comments on commit c9bdbcb

Please sign in to comment.