Skip to content

Commit

Permalink
chore: fix imports and make tests a module
Browse files Browse the repository at this point in the history
  • Loading branch information
bukowa committed Sep 5, 2024
1 parent c65ee6c commit 4384c47
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Empty file added backend/tests/__init__.py
Empty file.
6 changes: 3 additions & 3 deletions backend/tests/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest
import warnings
from fastapi.testclient import TestClient
from main import app
from app.database import SessionLocal, engine
from app import models
from ..main import app
from ..app.database import SessionLocal, engine
from ..app import models

client = TestClient(app)

Expand Down
6 changes: 3 additions & 3 deletions backend/tests/test_elo_service.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest
from sqlalchemy.orm import Session

from app.database import SessionLocal, Base, engine
from app.elo_service import ELOService
from app.models import User, Contest, Bug, BugReport, EloHistory, BugSeverity
from ..app.database import SessionLocal, Base, engine
from ..app.elo_service import ELOService
from ..app.models import User, Contest, Bug, BugReport, EloHistory, BugSeverity


@pytest.fixture(scope="function")
Expand Down
8 changes: 4 additions & 4 deletions backend/tests/test_process_elo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from sqlalchemy.orm import Session
from datetime import datetime, timedelta, timezone

from app import models
from app.database import SessionLocal, engine
from app.models import contest_participants
from main import app
from ..app import models
from ..app.database import SessionLocal, engine
from ..app.models import contest_participants
from ..main import app

client = TestClient(app)

Expand Down
8 changes: 4 additions & 4 deletions backend/tests/test_signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from sqlalchemy.orm import Session

from app import models
from app.database import SessionLocal, engine
from app.models import contest_participants
from main import app
from ..app import models
from ..app.database import SessionLocal, engine
from ..app.models import contest_participants
from ..main import app

client = TestClient(app)

Expand Down

0 comments on commit 4384c47

Please sign in to comment.