Skip to content

Commit fdeff68

Browse files
committed
chore: address Pylint warnings
1 parent 33539e5 commit fdeff68

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Main
33
# ------------------------------------------------------------------------------
44

5+
from contextlib import asynccontextmanager
56
from fastapi import FastAPI
67
from fastapi_cache import FastAPICache
78
from fastapi_cache.backends.inmemory import InMemoryBackend
89
from routes import player_route
9-
from contextlib import asynccontextmanager
1010

1111

1212
@asynccontextmanager

routes/player_route.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
from typing import List
66
from fastapi import APIRouter, Body, Depends, HTTPException, status, Path
77
from sqlalchemy.orm import Session
8+
from fastapi_cache import FastAPICache
9+
from fastapi_cache.decorator import cache
810
from data.player_database import OrmSession
911
from models.player_model import PlayerModel
1012
from services import player_service
11-
from fastapi_cache import FastAPICache
12-
from fastapi_cache.decorator import cache
1313

1414
api_router = APIRouter()
1515

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import pytest
21
import warnings
2+
import pytest
33
from fastapi.testclient import TestClient
44
from main import app
55

@@ -9,5 +9,5 @@
99

1010
@pytest.fixture(scope="module")
1111
def client():
12-
with TestClient(app) as client:
13-
yield client
12+
with TestClient(app) as test_client:
13+
yield test_client

0 commit comments

Comments
 (0)