Bump version 0.3.0#5
Merged
Merged
Conversation
…r MockScyllaDB - Bumped the project version from 0.2.0 to 0.3.0. - Introduced a new test file `test_fixture_autouse.py` that includes a fixture to set up a mock ScyllaDB environment, create a keyspace and table, and insert test data. - Added tests to verify the correct number of preloaded rows and the expected query results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new version of the
mockyllapackage and adds comprehensive tests for preloaded data using an autouse fixture. The most important changes include updating the version inpyproject.tomland introducing a new test file with a module-scoped fixture and two test cases.Package version update:
pyproject.toml: Updated the package version from0.2.0to0.3.0, indicating a new release.New test file with autouse fixture:
tests/test_fixture_autouse.py: Added a module-scopedpytestfixture to mock a ScyllaDB instance, create a keyspace and table, and insert preloaded data for testing. This fixture is applied automatically to all tests in the module.tests/test_fixture_autouse.py: Addedtest_preloaded_row_count, which verifies that the fixture inserted exactly two rows into the table.tests/test_fixture_autouse.py: Addedtest_query_returns_expected_value, which runs a SELECT query to ensure the correct row is returned based on the preloaded data.