Skip to content

Is this a correct way to use setup_module? #12353

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

You must be logged in to vote

its not clear what you are asking for, setup_moduleas per xunit would be a module level function

your example has a fixture using that name while being session scoped

a xunit style setup method would be defined in the module where it is wanted

a fixture doesnt need to use the xunit names

these days using fixtures is recommended over using xunit methods

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pjyan
Comment options

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