Commit c8d57d3f authored by Aryan Noshirvani's avatar Aryan Noshirvani

Fix database import in pytest conftest

parent 5d817b8d
Pipeline #963 failed with stages
in 2 minutes and 44 seconds
import pytest
from fastapi.testclient import TestClient
from src.api.main import app
from src.core.database import SessionLocal, Base, engine
try:
from database import engine, Base
except ImportError:
from src.core.database import engine, Base
@pytest.fixture(scope="session", autouse=True)
def setup_database():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment