Skip to content

Commit 0d83e01

Browse files
committed
REF: clean up imports and remove redundant code in test_news.py
1 parent 9bb04c4 commit 0d83e01

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/test_news.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from datetime import datetime
2+
from typing import Mapping
23

34
import pytest
45
import pytest_asyncio
6+
from fastapi import status
7+
from httpx import AsyncClient
58
from services.database.models import Community, News
69
from sqlmodel import select
710
from sqlmodel.ext.asyncio.session import AsyncSession
@@ -55,12 +58,6 @@ async def test_insert_libraries(session: AsyncSession, community: Community):
5558

5659

5760
# ADD like test case for News model
58-
from typing import Mapping
59-
60-
import pytest
61-
from fastapi import status
62-
from httpx import AsyncClient
63-
6461

6562
@pytest.mark.asyncio
6663
async def test_news_endpoint(

0 commit comments

Comments
 (0)