Skip to content

Commit

Permalink
Fix assertion in TestCheckParseValues::test_warns_bad_type (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Nov 19, 2023
1 parent 5c36caa commit d0b0fa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ def test_warns_bad_type(self, item):
with patch("tavern._core.dict_util.logger.warning") as wmock:
_check_and_format_values("{fd}", {"fd": item})

assert wmock.called_with(
"Formatting 'fd' will result in it being coerced to a string (it is a {})".format(
type(item)
)
wmock.assert_called_with(
"Formatting '%s' will result in it being coerced to a string (it is a %s)",
"fd",
type(item),
)

@pytest.mark.parametrize("item", [1, "a", 1.3, format_keys("{s}", {"s": 2})])
Expand Down

0 comments on commit d0b0fa6

Please sign in to comment.