Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Jan 7, 2025
1 parent 44dd304 commit 6f936fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/aind_data_schema/core/procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,12 +714,7 @@ class Procedures(AindCoreModel):
)
subject_procedures: List[
Annotated[
Union[
Surgery,
TrainingProtocol,
WaterRestriction,
OtherSubjectProcedure
],
Union[Surgery, TrainingProtocol, WaterRestriction, OtherSubjectProcedure],
Field(discriminator="procedure_type"),
]
] = Field(default=[], title="Subject Procedures")
Expand Down
5 changes: 4 additions & 1 deletion tests/test_bump_schema_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def test_write_new_file(self, mock_open: MagicMock):
mock_open.return_value.__enter__().write.assert_has_calls([call(file_contents[0]), call(file_contents[1])])

"""Tests get_schema_json method"""

@patch("builtins.open")
@patch("json.load")
@patch("pathlib.Path.exists")
Expand Down Expand Up @@ -137,7 +138,9 @@ def test_update_files(self, mock_write: MagicMock):
@patch("aind_data_schema.utils.schema_version_bump.SchemaVersionHandler._get_schema_json")
@patch("aind_data_schema.utils.schema_version_bump.SchemaVersionHandler._get_list_of_models_that_changed")
@patch("aind_data_schema.utils.schema_version_bump.SchemaVersionHandler._update_files")
def test_run_job(self, mock_update_files: MagicMock, mock_get_list_of_models: MagicMock, mock_get_schema: MagicMock):
def test_run_job(
self, mock_update_files: MagicMock, mock_get_list_of_models: MagicMock, mock_get_schema: MagicMock
):
"""Tests run_job method"""

old_subject_version = Subject.model_fields["schema_version"].default
Expand Down

0 comments on commit 6f936fc

Please sign in to comment.