Skip to content

feat: add test setup and fix related errors#2

Merged
lucaspaiva-lp merged 3 commits intomainfrom
develop
Jan 31, 2026
Merged

feat: add test setup and fix related errors#2
lucaspaiva-lp merged 3 commits intomainfrom
develop

Conversation

@lucaspaiva-lp
Copy link
Owner

This PR introduces a proper test setup and fixes issues caused by shared database state during test execution.

What was done

  • Added explicit test setup to ensure deterministic test behavior
  • Fixed failing tests caused by accumulated data in the database
  • Adjusted test logic to correctly validate repository behavior

Why

  • Tests were failing because they relied on assumptions about database state.
  • This change ensures tests behave predictably and reflect real system behavior.

Notes

  • Tests currently run against a real SQLite database
  • Data isolation is handled explicitly at the test level
  • No changes were made to production logic

@lucaspaiva-lp lucaspaiva-lp merged commit 2c5ea99 into main Jan 31, 2026
1 check passed
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