Skip to content

fix(python): use the detector fixture in the complex metadata test - #273

Open
Somya-jain0811 wants to merge 1 commit into
healthyinc:devfrom
Somya-jain0811:fix/test-store-complex-metadata-fixture
Open

Somya-jain0811 wants to merge 1 commit into
healthyinc:devfrom
Somya-jain0811:fix/test-store-complex-metadata-fixture

Conversation

@Somya-jain0811

Copy link
Copy Markdown

what was wrong

test_store_with_complex_metadata (added in the metadata PR) fails on dev with a 422.
the other /store tests in test_api.py use the simulated_production_detectors fixture,
and since the worker reliability merge the gate refuses /store in non-production detector
mode (reason_codes: ["non_production_detector_mode"]). my test passed in its own pr
because that merge hadn't landed yet. python backend ci and test coverage are red on dev
because of it.

what i changed

added @pytest.mark.usefixtures("simulated_production_detectors") to that test, same as
test_store, test_store_with_content and test_store_backward_compatibility.

how i tested

  • on dev: test_api.py 1 failed, 18 passed (422 on that test)
  • with the fix: test_api.py 19 passed
  • whole suite, pytest -q in python_backend: 945 passed, 20 skipped

the gate refuses /store in non-production detector mode, so the other
store tests use simulated_production_detectors. this test was written
before that landed and missed it, which turns python ci red on dev.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant