🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2022-09-12 17:27:37 +00:00
parent a4f93df9c7
commit 785ba7a12d
1 changed files with 3 additions and 1 deletions

View File

@ -6,10 +6,12 @@ def test_string_is_invalid_in_router_tags():
with pytest.raises(AssertionError):
APIRouter(tags="test")
def test_string_is_invalid_in_router_route_tags():
router = APIRouter()
with pytest.raises(AssertionError):
@router.get("", tags="test")
def test():
...
@ -24,4 +26,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")