Skip to content

fix: resolve test failures in PR #13#17

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

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

Conversation

@vikram-blaxel
Copy link
Copy Markdown
Owner

Automated fix for failing tests in #13.

Changes made:
The books table schema in the database required a publisher column, but the SQLAlchemy model Book was failing during insertions because it did not populate this field, leading to a NotNullViolation. I updated the Book SQLAlchemy model and the BookIn Pydantic model to include the publisher field as an optional string. Additionally, I updated the create_book and update_book functions in repositories.py to correctly handle the publisher attribute.

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