Skip to content
Snippets Groups Projects
Commit 934e8e26 authored by Sabine Schröder's avatar Sabine Schröder
Browse files

#10: operational system using toaruser, pytests using toaradmin

parent 9a9db3f5
No related branches found
No related tags found
No related merge requests found
Pipeline #40125 passed
......@@ -10,7 +10,7 @@ from toardb.base import Base
from toardb.toardb import app
from toardb.utils.database import DATABASE_URL, get_db, get_engine
url = str(DATABASE_URL+ "_test")
url = "postgresql://toaradmin:toar2@localhost:5432/toardb_test"
_db_conn = create_engine(url)
def get_test_engine() -> Engine:
......
......@@ -5,7 +5,7 @@ Database connection
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
DATABASE_URL = "postgresql://toaradmin:toar2@localhost:5432/toardb"
DATABASE_URL = "postgresql://toaruser:toar2@localhost:5432/toardb"
engine = create_engine(DATABASE_URL)
ToarDbSession = sessionmaker(autocommit=False, autoflush=False, bind=engine)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment