Skip to content

Commit 6dfe847

Browse files
committed
Conflicting session names
1 parent 005d81c commit 6dfe847

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import pytest
2+
from sqlmodel import Session
23

3-
from murfey.util.db import Session, clear, setup
4+
from murfey.util.db import Session as MurfeySession
5+
from murfey.util.db import clear, setup
46
from tests import engine, url
57

68

@@ -9,7 +11,7 @@ def start_postgres():
911
clear(url)
1012
setup(url)
1113

12-
murfey_session = Session(id=2, name="cm12345-6")
14+
murfey_session = MurfeySession(id=2, name="cm12345-6")
1315
with Session(engine) as murfey_db:
1416
murfey_db.add(murfey_session)
1517
murfey_db.commit()

0 commit comments

Comments
 (0)