diff --git a/tests/test_tags.py b/tests/test_tags.py index e115b3e3d..993b81430 100644 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -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") \ No newline at end of file