Skip to content

Commit 04c3645

Browse files
committed
chore(config): align CodeRabbit rules with new test naming convention
1 parent 2fe88a4 commit 04c3645

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.coderabbit.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)