Skip to content

Commit

Permalink
Fix tests after changed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoura committed Mar 17, 2023
1 parent 07f7961 commit cdc47f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,10 @@ def test_json_schema_typed_invalid_type(

err_str = str(excinfo.value)
assert (
# In node < 1.36.0
'Expected a single field named "int", "bytes", "string", "list" or "map".' in err_str
# See node commit ac662d8e46554c1ed02d485bfdd69e7ec04d8613
or 'Expected a single field named "int", "bytes", "list" or "map".' in err_str
), err_str

@allure.link(helpers.get_vcs_link())
Expand Down Expand Up @@ -1145,5 +1148,8 @@ def test_json_schema_untyped_invalid_type(

err_str = str(excinfo.value)
assert (
# In node < 1.36.0
'Expected a single field named "int", "bytes", "string", "list" or "map".' in err_str
# See node commit ac662d8e46554c1ed02d485bfdd69e7ec04d8613
or 'Expected a single field named "int", "bytes", "list" or "map".' in err_str
), err_str
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,10 @@ def test_json_schema_typed_invalid_type(
)

assert (
# In node < 1.36.0
'Expected a single field named "int", "bytes", "string", "list" or "map".' in err
# See node commit ac662d8e46554c1ed02d485bfdd69e7ec04d8613
or 'Expected a single field named "int", "bytes", "list" or "map".' in err
), err

@allure.link(helpers.get_vcs_link())
Expand Down Expand Up @@ -1366,5 +1369,8 @@ def test_json_schema_untyped_invalid_type(
)

assert (
# In node < 1.36.0
'Expected a single field named "int", "bytes", "string", "list" or "map".' in err
# See node commit ac662d8e46554c1ed02d485bfdd69e7ec04d8613
or 'Expected a single field named "int", "bytes", "list" or "map".' in err
), err

0 comments on commit cdc47f1

Please sign in to comment.