test: move poll_deployment_health tests out of e2e#849
test: move poll_deployment_health tests out of e2e#849muddlebee merged 2 commits intoTracer-Cloud:mainfrom
Conversation
Greptile SummaryThis PR moves three purely mocked Confidence Score: 5/5Safe to merge — this is a pure test relocation with no production code changes. All three test assertions are verified correct against the implementation. The only finding is a P2 style suggestion to use No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["pytest default run"] -->|"norecursedirs excludes tests/e2e"| B["tests/e2e/deploy/test_deploy_timing.py\n(NOT collected before)"]
A -->|"tests/ root is collected"| C["tests/test_deployment_health.py\n(collected now ✓)"]
C --> D["test_poll_deployment_health_retries_until_success"]
C --> E["test_poll_deployment_health_times_out_for_unreachable_endpoint"]
C --> F["test_poll_deployment_health_uses_explicit_health_url_without_fallback"]
D & E & F --> G["app/deployment/health.py :: poll_deployment_health"]
|
|
Updated. Switched that case to |
Fixes #840
Describe the changes you have made in this PR -
Moved the pure mocked
poll_deployment_healthtests out oftests/e2e/deploy/and intotests/test_deployment_health.py.This keeps the mocked test behavior unchanged while making the tests discoverable in the default pytest run.
Screenshots of the UI changes (If any) -
Code Understanding and AI Usage
Did you use AI assistance (ChatGPT, Claude, Copilot, etc.) to write any part of this code?
If you used AI assistance:
Explain your implementation approach:
The issue calls out
tests/e2e/deploy/test_deploy_timing.pyas a pure mocked test module that should be collected by the default suite. I moved it totests/test_deployment_health.pywithout changing the assertions or retry behavior.One edge case I considered was the destination path.
pytest.iniexcludes bothtests/e2eandtests/deploymentfrom normal recursion, so moving these tests undertests/deployment/would still keep them out of the default run. I placed the file directly undertests/so it remains easy to discover and is collected by default.Checklist before requesting a review
Verification
python -m pytest tests/test_deployment_health.pypython -m pytest --collect-only tests/test_deployment_health.pyOutput summary:
3 passed3 tests collected