Skip to content

setup_class does not work well with @pytest.fixture #11330

Answered by RonnyPfannschmidt
vipkum2 asked this question in Q&A
Discussion options

You must be logged in to vote

for one, assign things to type(self).foo instead of self.foo

i believe we have a number of issues about needing to error on class scope fixtures in classes that take self

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@The-Compiler
Comment options

@The-Compiler
Comment options

@vipkum2
Comment options

@RonnyPfannschmidt
Comment options

Answer selected by vipkum2
@vipkum2
Comment options

@The-Compiler
Comment options

@vipkum2
Comment options

@The-Compiler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants