mirror of https://github.com/tiangolo/fastapi.git
Merge branch 'forbid-str-tags' of github.com:duarte-pompeu/fastapi into forbid-str-tags
This commit is contained in:
commit
180a22d89d
|
|
@ -6,6 +6,7 @@ def test_string_is_invalid_in_router_tags():
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
APIRouter(tags="test")
|
APIRouter(tags="test")
|
||||||
|
|
||||||
|
|
||||||
def test_string_is_invalid_in_router_route_tags():
|
def test_string_is_invalid_in_router_route_tags():
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
@ -24,4 +25,4 @@ def test_string_is_invalid_in_include_router_tags():
|
||||||
...
|
...
|
||||||
|
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
app.include_router(router, prefix="/test", tags="test")
|
app.include_router(router, prefix="/test", tags="test")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue