pytest-tricks icon indicating copy to clipboard operation
pytest-tricks copied to clipboard

Pass argument from test case to fixture

Open The-Compiler opened this issue 8 years ago • 3 comments
trafficstars

I can see this question coming up a lot :wink:

Possible solutions include:

  • Returning a helper object/function from the fixture
  • Adding a marker on the test and reading that from the fixture

The-Compiler avatar Dec 15 '16 06:12 The-Compiler

Sounds like a great article for pytest-tricks! 👍

Do you have time to write a something?

hackebrot avatar Dec 15 '16 19:12 hackebrot

Nope, sorry - too busy with university and other OSS stuff, and from what it looks like this isn't going to change anytime soon...

The-Compiler avatar Dec 15 '16 20:12 The-Compiler

😢

hackebrot avatar Dec 15 '16 23:12 hackebrot