Write a pytest for a rejected duplicate
Mid · tests · 25 min · runtime python
Brief
Write a pytest that proves create_user rejects a duplicate email with a specific error and leaves the store unchanged. Include arrange/act/assert and a fixture.
3 progressive hints are available in the editor.
Public checks
- asserts the error — expected:
uses pytest.raises with a specific exception