Skip to content

Commit

Permalink
replace None with 'base' to use a str to pass type checks
Browse files Browse the repository at this point in the history
fixes #134
  • Loading branch information
mmerickel committed Feb 18, 2024
1 parent d7d61d1 commit 5f2c636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions {{cookiecutter.repo_name}}/tests/sqlalchemy_conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def dbengine(app_settings, ini_file):

alembic_cfg = alembic.config.Config(ini_file)
Base.metadata.drop_all(bind=engine)
alembic.command.stamp(alembic_cfg, None, purge=True)
alembic.command.stamp(alembic_cfg, 'base', purge=True)

# run migrations to initialize the database
# depending on how we want to initialize the database from scratch
Expand All @@ -44,7 +44,7 @@ def dbengine(app_settings, ini_file):
yield engine

Base.metadata.drop_all(bind=engine)
alembic.command.stamp(alembic_cfg, None, purge=True)
alembic.command.stamp(alembic_cfg, 'base', purge=True)

@pytest.fixture(scope='session')
def app(app_settings, dbengine):
Expand Down

0 comments on commit 5f2c636

Please sign in to comment.