Skip to content

Bump version 0.3.0#5

Merged
rohaquinlop merged 1 commit into
mainfrom
bump-version-0.3.0
Jul 3, 2025
Merged

Bump version 0.3.0#5
rohaquinlop merged 1 commit into
mainfrom
bump-version-0.3.0

Conversation

@rohaquinlop
Copy link
Copy Markdown
Collaborator

This pull request introduces a new version of the mockylla package and adds comprehensive tests for preloaded data using an autouse fixture. The most important changes include updating the version in pyproject.toml and introducing a new test file with a module-scoped fixture and two test cases.

Package version update:

  • pyproject.toml: Updated the package version from 0.2.0 to 0.3.0, indicating a new release.

New test file with autouse fixture:

  • tests/test_fixture_autouse.py: Added a module-scoped pytest fixture 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: Added test_preloaded_row_count, which verifies that the fixture inserted exactly two rows into the table.
  • tests/test_fixture_autouse.py: Added test_query_returns_expected_value, which runs a SELECT query to ensure the correct row is returned based on the preloaded data.

…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.
@rohaquinlop rohaquinlop merged commit 2308712 into main Jul 3, 2025
16 checks passed
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