Skip to content

Conversation

@febus982
Copy link
Owner

Closes #237

This refactor centralizes and organizes the fixture migration logic within the new `FixtureHandler` class. It improves modularity, adds clarity with docstrings, and ensures code reuse for both synchronous and asynchronous contexts. Additionally, it updates the linting configuration to allow long lines in `env.py`.
Replaced the `fixtures()` function with a dictionary object for improved readability and simplicity. Updated the related call to access the dictionary directly, eliminating unnecessary function wrapping.
@febus982 febus982 marked this pull request as ready for review January 27, 2025 20:36
This commit updates multiple dependencies in `uv.lock`, including `cloudevents-pydantic`, `deprecated`, `faker`, `fastapi`, `graphql-core`, and `grpcio`. These updates ensure improved functionality, compatibility, and potential bug fixes.
@febus982 febus982 marked this pull request as draft January 27, 2025 21:05
This update introduces a new `alembic_revision` column to fixture tables for tracking the Alembic migration state. Additionally, error logging in fixture creation now includes exception details, and rollback is moved to ensure consistency in failure scenarios.
@febus982 febus982 marked this pull request as ready for review January 27, 2025 22:31
Renamed the "alembic_revision" column to "alembic_head_revisions" in both the migration environment and initialization script. This ensures consistency and better reflects the purpose of the column.
@febus982 febus982 force-pushed the implement-fixtures-support branch from 1d01d88 to 9a4335f Compare January 27, 2025 22:32
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 9a4335f and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (100% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.

@febus982 febus982 merged commit bc59735 into main Jan 29, 2025
12 checks passed
@febus982 febus982 deleted the implement-fixtures-support branch January 29, 2025 23:23
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.

Database fixtures

2 participants