Skip to content

Commit

Permalink
take Kent suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
willronchetti committed Aug 9, 2023
1 parent 0a12830 commit 6c3107a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snovault/tests/test_schema_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from snovault.schema_utils import (
_update_resolved_data, _handle_list_or_string_value, resolve_merge_refs,
validate
_update_resolved_data, _handle_list_or_string_value, # noQA - testing protected members
resolve_merge_refs, validate
)


Expand Down Expand Up @@ -389,7 +389,7 @@ def test_schema_utils_validates_dates(testapp, invalid_date):
'date_property': invalid_date
})
date_error = str(errors[0])
assert f"'{invalid_date}' is not a 'date'" in date_error
assert f"{invalid_date!r} is not a 'date'" in date_error


@pytest.mark.parametrize('invalid_date_time', [
Expand Down Expand Up @@ -419,4 +419,4 @@ def test_schema_utils_validates_date_times(testapp, invalid_date_time):
'date_time_property': invalid_date_time
})
date_error = str(errors[0])
assert f"'{invalid_date_time}' is not a 'date-time'" in date_error
assert f"{invalid_date_time!r} is not a 'date-time'" in date_error

0 comments on commit 6c3107a

Please sign in to comment.