7 / 80 · 12 Programming for QA · Python Essentials for QA← prev⊞ allnext →☰ Read as one page
1.7Practical Exercise
Write a pytest test file that:
- Uses a fixture to authenticate and get a token
- Tests creating a user (POST)
- Tests retrieving the created user (GET)
- Tests that duplicate email creation returns 409
- Uses parametrize to test email validation with at least 5 inputs
- Cleans up the created user in a fixture teardown