Skip to content

Commit 3930489

Browse files
committed
fixed structure
1 parent 4eb0f3d commit 3930489

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tracker"
3-
version = "2.1.16"
3+
version = "2.1.17"
44
description = "A simple bug tracking API"
55
authors = ["Masum Billal <billalmasum93@gmail.com>"]
66
license = "LICENSE"
@@ -23,7 +23,7 @@ pytest = "^7.4.0"
2323
coverage = "^7.3.0"
2424
pytest-asyncio = "^0.21.1"
2525

26-
[tool.pytest]
26+
[tool.pytest.ini_options]
2727
asyncio_mode = "auto"
2828

2929
[tool.ruff]
File renamed without changes.

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
)
2121

2222

23-
@pytest_asyncio.fixture(scope="class")
23+
@pytest_asyncio.fixture(scope="module")
2424
async def app():
2525
session = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)()
2626
app_test = FastAPI()
@@ -33,7 +33,7 @@ async def app():
3333
await session.close()
3434

3535

36-
@pytest_asyncio.fixture(scope="class")
36+
@pytest_asyncio.fixture(scope="module")
3737
async def client(app: FastAPI) -> AsyncGenerator[AsyncClient, None]:
3838
async with engine.begin() as conn:
3939
await conn.run_sync(Base.metadata.create_all)
@@ -47,7 +47,7 @@ async def client(app: FastAPI) -> AsyncGenerator[AsyncClient, None]:
4747
await engine.dispose()
4848

4949

50-
@pytest.fixture(scope="class")
50+
@pytest.fixture(scope="module")
5151
def event_loop():
5252
policy = asyncio.get_event_loop_policy()
5353
loop = policy.new_event_loop()

tests/views/test_bug.py renamed to tests/test_bug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
from httpx import AsyncClient
33

4-
from tests.views.common import detail_not_found
4+
from tests.common import detail_not_found
55

66

77
class TestStory:

tests/views/test_story.py renamed to tests/test_story.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
from httpx import AsyncClient
33

4-
from tests.views.common import detail_not_found
4+
from tests.common import detail_not_found
55

66

77
class TestStory:

0 commit comments

Comments
 (0)