Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
fix: add pytest mark
Browse files Browse the repository at this point in the history
  • Loading branch information
fbraem committed Jul 28, 2023
1 parent bd262d3 commit a8f4e55
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/tests/modules/identity/test_authenticate_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
UserAccountDbRepository,
)

pytestmark = pytest.mark.db


@pytest.mark.asyncio
async def test_authenticate_user(database: Database, user_account: UserAccountEntity):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
UserInvitationRepository,
)

pytestmark = pytest.mark.db


@pytest.fixture(scope="module")
def repo(database: Database) -> UserInvitationRepository:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
UserInvitationRepository,
)

pytestmark = pytest.mark.db


@pytest.fixture(scope="module")
def repo(database: Database) -> UserInvitationRepository:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
UserInvitationRepository,
)

pytestmark = [pytest.mark.db, pytest.mark.mail]


@pytest.fixture(scope="module")
def repo(database: Database) -> UserInvitationRepository:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from kwai.core.db.database import Database
from kwai.modules.news.stories.story_db_query import StoryDbQuery

pytestmark = pytest.mark.db


@pytest.mark.asyncio
async def test_story_db_query(database: Database):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
StoryRepository,
)

pytestmark = pytest.mark.db


@pytest.fixture(scope="module")
async def repo(database: Database) -> StoryRepository:
Expand Down
2 changes: 2 additions & 0 deletions backend/src/tests/modules/news/test_get_stories.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from kwai.modules.news.stories.story_db_repository import StoryDbRepository
from kwai.modules.news.stories.story_repository import StoryRepository

pytestmark = pytest.mark.db


@pytest.fixture(scope="module")
def repo(database: Database) -> StoryRepository:
Expand Down

0 comments on commit a8f4e55

Please sign in to comment.