Skip to content

Conversation

@nicoddemus
Copy link
Member

@nicoddemus nicoddemus closed this Jun 27, 2019
del d["_name"]
return "<ParsedCall {!r}(**{!r})>".format(self._name, d)

def assert_params(self, **expected_params):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile this might be useful

result.stdout.fnmatch_lines(
"*Assertion Passed: a + b == c + d (1 + 2) == (3 + 0) at line 7*"
rec = testdir.inline_run()
calls = rec.getcalls("pytest_assertion_pass")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile this might be useful too, using HookRecorder objects to get the hook call directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant