Skip to content

fix: resolve test failures in PR #13#21

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

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

Conversation

@vikram-blaxel
Copy link
Copy Markdown
Owner

Automated fix for failing tests in #13.

Changes made:
All 8 tests pass. The Book SQLAlchemy model had a publisher column added with NOT NULL, but BookIn (the Pydantic input schema) was missing the publisher field, and create_book/update_book in repositories.py weren't passing it to the Book constructor. The fix adds publisher: str = "" to BookIn with an empty string default (so existing callers that omit it still work), adds publisher to BookOut, and updates both create_book and update_book in repositories.py to pass the publisher value through.

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