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

Refactor tests #574

Merged
merged 5 commits into from
Mar 13, 2024
Merged

Refactor tests #574

merged 5 commits into from
Mar 13, 2024

Conversation

anakin87
Copy link
Member

@anakin87 anakin87 commented Mar 12, 2024

To properly address #435,
it is best to completely separate unit tests from integration tests.

This PR attempts to do that, resulting in:

  • removing the marker pytest.mark.unit
  • adding the marker pytest.mark.integration where needed
  • refactoring some tests so that they actually behave as unit tests

I was able to run all unit tests (not marked with pytest.mark.integration) locally, without API keys set and containers running.

@anakin87 anakin87 requested a review from masci March 12, 2024 16:48
@anakin87 anakin87 marked this pull request as ready for review March 12, 2024 16:48
@anakin87 anakin87 requested a review from a team as a code owner March 12, 2024 16:48
@anakin87 anakin87 requested review from silvanocerza and removed request for a team and silvanocerza March 12, 2024 16:48
@@ -35,6 +35,7 @@
)


@pytest.mark.integration
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not all the following tests are integration tests, but I chose not to interfere much with Weaviate, since it is a work in progress.

@anakin87 anakin87 mentioned this pull request Mar 13, 2024
@github-actions github-actions bot added the type:documentation Improvements or additions to documentation label Mar 13, 2024
@anakin87 anakin87 merged commit b0b71e4 into main Mar 13, 2024
50 checks passed
@anakin87 anakin87 deleted the separate-unit-integration-tests branch March 13, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants