Skip to content

Commit

Permalink
tests: fix test to match default= pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Nov 12, 2024
1 parent 91da948 commit 1bce88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_bump_schema_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def test_update_files(self, mock_write: MagicMock):
handler._update_files({Subject: new_subject_version, Session: new_session_version})

expected_line_change0 = (
f'schema_version: SkipValidation[Literal["{new_subject_version}"]] = Field("{new_subject_version}")'
f'schema_version: SkipValidation[Literal["{new_subject_version}"]] = Field(default="{new_subject_version}")'
)
expected_line_change1 = (
f'schema_version: SkipValidation[Literal["{new_session_version}"]] = Field("{new_session_version}")'
f'schema_version: SkipValidation[Literal["{new_session_version}"]] = Field(default="{new_session_version}")'
)

mock_write_args0 = mock_write.mock_calls[0].args
Expand Down

0 comments on commit 1bce88b

Please sign in to comment.