Skip to content

Commit 005d81c

Browse files
committed
add session to test db
1 parent b246c1a commit 005d81c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import pytest
22

3-
from murfey.util.db import clear, setup
4-
from tests import url
3+
from murfey.util.db import Session, clear, setup
4+
from tests import engine, url
55

66

77
@pytest.fixture
88
def start_postgres():
99
clear(url)
1010
setup(url)
11+
12+
murfey_session = Session(id=2, name="cm12345-6")
13+
with Session(engine) as murfey_db:
14+
murfey_db.add(murfey_session)
15+
murfey_db.commit()

0 commit comments

Comments
 (0)