Skip to content

Commit c08ebc3

Browse files
committed
Fixed unit tests for date serialization to_json.
1 parent 8d8a7e0 commit c08ebc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_metaclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def _get_kwargs_from_dict(cls, as_dict):
471471
assert 'date_value' in result
472472
as_dict = json.loads(result)
473473
assert 'date_value' in as_dict
474-
assert checkers.is_string(as_dict['date_value']) is True
474+
assert checkers.is_numeric(as_dict['date_value']) is True
475475
else:
476476
with pytest.raises(error):
477477
obj = ClassWithDate()

0 commit comments

Comments
 (0)