AUT: Cards (To-Do List)
- Function parametrization
- Fixture parametrization
- Hooks (
pytest_generate_tests
)
- We could base parametrization list on a command-line flag:
metafunc.config.getoption("--someflag")
- We could parametrize multiple parameters:
metafunc.paramterize("planet, moon", [ ('Earth', 'Moon'), ('Mars', 'Deimos'), ('Mars', 'Phobos), ])
- Parameteres can be used to gather a smaller subset of tests:
pytest -v -k todo
pytest -v -k "todo and not (done or play)"