Skip to content

Commit

Permalink
adds schema version hack to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mekhlakapoor committed Oct 23, 2024
1 parent 480df61 commit 51df476
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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,10 @@ 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 51df476

Please sign in to comment.