Skip to content

test(e2e): mark reranking e2e module with pytest.mark.e2e - #66

Open
bertheto wants to merge 1 commit into
ScottRBK:mainfrom
bertheto:fix/e2e-mark-reranking-test
Open

bertheto wants to merge 1 commit into
ScottRBK:mainfrom
bertheto:fix/e2e-mark-reranking-test

Conversation

@bertheto

Copy link
Copy Markdown
Contributor

tests/e2e/test_reranking_e2e.py only sets the asyncio mark at module level, so its two tests never carry the e2e mark.

That has two effects. The e2e workflow runs pytest tests/e2e/ -m e2e, so both reranking tests get deselected there and never run. And a plain local pytest (pytest.ini adds -m "not e2e") picks them up, even though they need Postgres in Docker.

The change uses the same module-level pytestmark list as test_file_tools_e2e.py and test_auto_link_threshold_e2e.py.

Checked locally: on main, -m e2e over tests/e2e/ deselects these two tests. With the change, the default run deselects them, -m e2e collects them, and both pass on my fork against forgetful-db.

This branch has not been deployed

No deployments
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