We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187f138 commit 780f3b9Copy full SHA for 780f3b9
tests/conftest.py
@@ -40,9 +40,13 @@ def validator(data_json):
40
if not found:
41
raise ValidationError("Missing required key {}".format(k))
42
if k in data:
43
- if v["type"] == "string" and not isinstance(data[k], str):
+ if v["type"] == "string" and not (
44
+ isinstance(data[k], str) or isinstance(data[k], basestring)
45
+ ):
46
raise ValidationError(
- "Value {0} for key {1} should be string".format(data[k], k)
47
+ "Value {0} for key {1} should be string, is {2}".format(
48
+ data[k], k, type(data[k])
49
+ )
50
)
51
if v["type"] == "datetime":
52
try:
0 commit comments