Skip to content

Ensure test isolation by resetting database state or using mocks #18

Description

@sourcery-ai

There is a concern regarding test isolation in our current testing setup. Some tests may alter the database state, which can lead to interference between tests and unreliable results. To ensure proper isolation and prevent tests from affecting each other, we should consider using a temporary database for each test run or implement mocking strategies for database interactions.

Action items:

  • Review current test setup for database state management.
  • Investigate options for using a temporary database or mocking database calls during tests.
  • Update test infrastructure to ensure tests do not affect each other's database state.
  • Document the chosen approach for future contributors.

I created this issue for @ajwalkiewicz from #17 (comment).

Tips and commands

Getting Help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions