You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sobolevn These cases are not what I meant. If the fixture function returns a function which has some assertions in it, that is fine, since the function is called during test code execution and thus becomes part of the test code.
What I see as a violation is making assertions in the fixture function itself, i.e. during setup/teardown:
Rule request
Description
The rule should check that there are no
assert
statements in fixtures.Rationale
no-expect-in-setup-teardown
The text was updated successfully, but these errors were encountered: