Skip to content

fix: resolve test failures in PR #13#15

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

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

Conversation

@vikram-blaxel
Copy link
Copy Markdown
Owner

Automated fix for failing tests in #13.

Changes made:
The fix was to change the publisher field in the Book SQLAlchemy model from nullable=False to nullable=True. This resolved the database constraint violation because the tests create books without providing a publisher value, and the repositories code doesn't set the publisher field when creating or updating books. Making the field nullable allows NULL values to be stored in the database, which matches the expected behavior of the application and test suite.

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