Skip to content

Commit

Permalink
Create table in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jun 20, 2024
1 parent fde950d commit 77e2871
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/e2e/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pytest

from src.db import ENGINE, Base


@pytest.fixture(scope="session", autouse=True)
def _setup():
"""
Setup database pre-testing
:return:
"""
Base.metadata.drop_all(ENGINE)
Base.metadata.create_all(ENGINE)

0 comments on commit 77e2871

Please sign in to comment.