Skip to content

Use a fresh database for flask tests - #5285

Merged
mogmi merged 5 commits into
masterfrom
fix-test-database-errors-when-running-subsets
Sep 8, 2026
Merged

mogmi merged 5 commits into
masterfrom
fix-test-database-errors-when-running-subsets

Conversation

@mogmi

@mogmi mogmi commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Description

Currently the flask tests reuse whatever database was setup before they were run. This causes issues when we want to run tests out of order or run a subset of the tests. This PR sets up a fresh database for each flask test just as we do with other tests and makes sure the current session on the store is the one that was just created.

This version is a

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

@mogmi
mogmi requested a review from a team as a code owner August 25, 2026 14:20

@islean islean left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2026

Copy link
Copy Markdown

@mogmi
mogmi merged commit b7bacdb into master Sep 8, 2026
8 checks passed
@mogmi
mogmi deleted the fix-test-database-errors-when-running-subsets branch September 8, 2026 13:46
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.

2 participants