Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieran Higgins committed Mar 15, 2024
1 parent 359c780 commit f8f43ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/table/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,11 +1116,12 @@ def test_table_properties_raise_for_none_value(example_table_metadata_v2: Dict[s
TableMetadataV2(**example_table_metadata_v2)
assert "None type is not a supported value in properties: property_name" in str(exc_info.value)


def test_serialize_commit_table_request() -> None:
request = CommitTableRequest(
requirements=(AssertTableUUID(uuid='4bfd18a3-74c6-478e-98b1-71c4c32f4163'),),
identifier=TableIdentifier(namespace=['a'], name='b'),
)

deserialized_request = CommitTableRequest.model_validate_json(request.model_dump_json())
assert request == deserialized_request
assert request == deserialized_request

0 comments on commit f8f43ed

Please sign in to comment.