remove unused variable

This commit is contained in:
Your Name 2022-09-12 18:26:50 +01:00
parent 7e4af666d1
commit a4f93df9c7
1 changed files with 2 additions and 4 deletions

View File

@ -4,14 +4,12 @@ from fastapi import APIRouter, FastAPI
def test_string_is_invalid_in_router_tags():
with pytest.raises(AssertionError):
router = APIRouter(tags="test")
APIRouter(tags="test")
def test_string_is_invalid_in_router_route_tags():
router = APIRouter()
with pytest.raises(AssertionError):
@router.get("", tags="test")
def test():
...
@ -26,4 +24,4 @@ def test_string_is_invalid_in_include_router_tags():
...
with pytest.raises(AssertionError):
app.include_router(router, prefix="/test", tags="test")
app.include_router(router, prefix="/test", tags="test")