Skip to content

fix: resolve test failures in PR #13#16

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

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

Conversation

@vikram-blaxel
Copy link
Copy Markdown
Owner

Automated fix for failing tests in #13.

Changes made:
Excellent! All tests pass consistently.

The issue was that the database schema required a publisher field (marked as NOT NULL) in the Book model, but the application code wasn't handling it. I fixed this by adding the publisher field to both Pydantic models (BookIn with a default value of "Unknown" to maintain backward compatibility, and BookOut as a required field), and updated the repository functions create_book and update_book to include the publisher field when creating or updating Book instances 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