Format conftest file
This commit is contained in:
parent
50730110cf
commit
a5d3c4d22a
@ -4,7 +4,7 @@ import sys
|
|||||||
# NOTE: Not sure if that was really necessary or whether this
|
# NOTE: Not sure if that was really necessary or whether this
|
||||||
# is just my quirky venv setup
|
# is just my quirky venv setup
|
||||||
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
PROJECT_ROOT = os.path.abspath(os.path.join(CURRENT_DIR, '..'))
|
PROJECT_ROOT = os.path.abspath(os.path.join(CURRENT_DIR, ".."))
|
||||||
|
|
||||||
if PROJECT_ROOT not in sys.path:
|
if PROJECT_ROOT not in sys.path:
|
||||||
sys.path.insert(0, PROJECT_ROOT)
|
sys.path.insert(0, PROJECT_ROOT)
|
||||||
@ -12,8 +12,9 @@ if PROJECT_ROOT not in sys.path:
|
|||||||
import pytest as pytest
|
import pytest as pytest
|
||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
|
|
||||||
from app.api import app
|
|
||||||
import app.database as database
|
import app.database as database
|
||||||
|
from app.api import app
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def client() -> TestClient:
|
def client() -> TestClient:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user