From 785ba7a12d5b582352cdbb72abfe047840389213 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Sep 2022 17:27:37 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_tags.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_tags.py b/tests/test_tags.py index 993b81430..ed9460fdb 100644 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -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") \ No newline at end of file + app.include_router(router, prefix="/test", tags="test")