mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fiddle with action
This commit is contained in:
parent
6d61056dc4
commit
00e805d535
7 changed files with 67 additions and 15 deletions
15
tests/conftest.py
Normal file
15
tests/conftest.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import pytest
|
||||
|
||||
from alembic import command, config
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def tables():
|
||||
"""Initialize a database before the tests, and then tear it down again
|
||||
Starts from an empty database and runs through all the migrations to check those as well
|
||||
while we're at it
|
||||
"""
|
||||
alembic_config = config.Config("alembic.ini")
|
||||
command.upgrade(alembic_config, "head")
|
||||
yield
|
||||
command.downgrade(alembic_config, "base")
|
||||
|
|
@ -1,2 +1,5 @@
|
|||
def test_dummy():
|
||||
assert True
|
||||
import settings
|
||||
|
||||
|
||||
def test_dummy(tables):
|
||||
assert settings.DB_TEST_SQLITE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue