Skip to content

TST: Pytest Fixture to Create Test Database if Needed#54

Open
zdomke wants to merge 2 commits intomainfrom
zdomke/create-test-db
Open

TST: Pytest Fixture to Create Test Database if Needed#54
zdomke wants to merge 2 commits intomainfrom
zdomke/create-test-db

Conversation

@zdomke
Copy link
Copy Markdown
Contributor

@zdomke zdomke commented Mar 26, 2026

Description

Add a fixture to our test suite that will check if the squirrel_test database exists and if not it will create one. This is useful for running pytest locally after rebuilding the docker container & volumes.

Motivation

I got annoyed by having to create the database manually each time I rebuilt my volumes. Also I want to avoid the panic of all of my tests failing in that scenario.

Pre-merge checklist

  • Code works interactively
  • Code contains descriptive docstrings
  • New/changed functions and methods are covered in the test suite where possible
  • Test suite passes locally
  • Test suite passes on GitHub Actions

@zdomke zdomke requested a review from a team March 26, 2026 22:17
@zdomke zdomke self-assigned this Mar 26, 2026
@zdomke zdomke added the enhancement New feature or request label Mar 26, 2026
@zdomke zdomke force-pushed the zdomke/create-test-db branch from 9f0df20 to d4ca547 Compare March 26, 2026 22:20
@zdomke zdomke marked this pull request as draft March 26, 2026 22:22
@zdomke zdomke marked this pull request as ready for review March 26, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant