Skip to content

fix: resolve test failures in PR #13#18

Closed
vikram-blaxel wants to merge 2 commits into
mainfrom
fix/pr-13-be4025
Closed

fix: resolve test failures in PR #13#18
vikram-blaxel wants to merge 2 commits into
mainfrom
fix/pr-13-be4025

Conversation

@vikram-blaxel
Copy link
Copy Markdown
Owner

Automated fix for failing tests in #13.

Changes made:
The issue was that the books table schema required a non-null publisher column, but the application code (in repositories.py and models.py) did not handle this field, resulting in integrity violations during tests. I modified models.py to make the publisher field optional in the SQLAlchemy model and provided a default value in the BookIn Pydantic model to ensure compatibility with existing code. Additionally, I updated repositories.py to correctly include the publisher field when creating or updating records in the database.

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