Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
fornellas committed Feb 18, 2021
1 parent d6a89d8 commit b5fb6d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/strict_mock_testslide.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,7 @@ def raises_when_setting_non_existing_attributes(self):
attr_name = "non_existing_attr"
with self.assertRaisesWithRegexMessage(
NonExistentAttribute,
f"'{attr_name}' can not be set.\n"
f"{self.strict_mock_rgx} template class does not have "
"this attribute so the mock can not have it as well.\n"
"See also: 'runtime_attrs' at StrictMock.__init__.",
f"'{attr_name}' is not part of the API.*",
):
setattr(self.strict_mock, attr_name, "whatever")

Expand Down

0 comments on commit b5fb6d7

Please sign in to comment.