Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test collections unique per openapi test module #5384

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

pedjak
Copy link
Contributor

@pedjak pedjak commented Nov 6, 2024

Collection name under test is equal to the test module name, without .py suffix.

  • Helps by debugging/tracing failed tests and find relevant logs lines in qdrant log files
  • Opens up a possibility to run tests in parallel, given that there are no data sharing between test modules

Change details:

  • defined module scoped collection_name fixture in conftest.py
  • removed collection_name module variable
  • each test function signature modified to declare the dependency to collection_name fixture
  • @pytest.mark.parametrize migrated to @pytest-cases.parametrize in cases when collection_name was used as the value

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Collection name under test is equal to the test module name, without `.py` suffix.

* Helps by debugging/tracing failed tests and find relevant logs lines in qdrant log files
* Opens up a possibility to run tests in parallel, given that there are no data sharing
  between test modules

Change details:
* defined module scoped `collection_name` fixture in `conftest.py`
* removed `collection_name` module variable
* each test signature modified to declare the dependency to `collection_name` fixture
* `@pytest.mark.parametrize` migrated to `@pytest-cases.parametrize` in cases when
  `collection_name` was used as the value
@pedjak pedjak requested a review from timvisee November 6, 2024 16:07
@pedjak pedjak self-assigned this Nov 6, 2024
@generall generall merged commit 9d67c63 into qdrant:dev Nov 6, 2024
17 checks passed
timvisee pushed a commit that referenced this pull request Nov 8, 2024
Collection name under test is equal to the test module name, without `.py` suffix.

* Helps by debugging/tracing failed tests and find relevant logs lines in qdrant log files
* Opens up a possibility to run tests in parallel, given that there are no data sharing
  between test modules

Change details:
* defined module scoped `collection_name` fixture in `conftest.py`
* removed `collection_name` module variable
* each test signature modified to declare the dependency to `collection_name` fixture
* `@pytest.mark.parametrize` migrated to `@pytest-cases.parametrize` in cases when
  `collection_name` was used as the value
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.

2 participants