File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ reviews:
8080 - path : " tests/**/*.py"
8181 instructions : |
8282 - Tests should use pytest with fixtures from conftest.py
83- - Verify test naming follows given_when_then pattern
83+ - Verify test naming follows test_request_{method}_{resource}_{param_or_context}_response_{outcome} pattern
8484 - Check that TestClient is used for endpoint testing
8585 - Ensure test data uses stubs (e.g., player_stub.py)
8686 - Tests should use async test functions where appropriate
@@ -287,7 +287,8 @@ code_generation:
287287 - path : " tests/**/*.py"
288288 instructions : |
289289 - Use pytest framework with async support (pytest-asyncio)
290- - Follow given_when_then or arrange_act_assert patterns
290+ - Follow test_request_{method}_{resource}_{param_or_context}_response_{outcome} pattern
291+ - Tests use arrange-act-assert structure within test body
291292 - Use fixtures from conftest.py for TestClient
292293 - Use test stubs for consistent test data
293294 - Ensure async tests are properly decorated
You can’t perform that action at this time.
0 commit comments