Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds schema version hack to integration test #186

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading