Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc602ed

Browse files
committed
Fix coverage check
1 parent d45e05f commit dc602ed

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/test_ambiguous_params.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_no_annotated_defaults():
1313

1414
@app.get("/items/{item_id}/")
1515
async def get_item(item_id: Annotated[int, Path(default=1)]):
16-
pass
16+
pass # pragma: nocover
1717

1818
with pytest.raises(
1919
AssertionError,
@@ -25,12 +25,12 @@ async def get_item(item_id: Annotated[int, Path(default=1)]):
2525

2626
@app.get("/")
2727
async def get(item_id: Annotated[int, Query(default=1)]):
28-
pass
28+
pass # pragma: nocover
2929

3030

3131
def test_no_multiple_annotations():
3232
async def dep():
33-
pass
33+
pass # pragma: nocover
3434

3535
with pytest.raises(
3636
AssertionError,
@@ -39,7 +39,7 @@ async def dep():
3939

4040
@app.get("/")
4141
async def get(foo: Annotated[int, Query(min_length=1), Query()]):
42-
pass
42+
pass # pragma: nocover
4343

4444
with pytest.raises(
4545
AssertionError,
@@ -51,7 +51,7 @@ async def get(foo: Annotated[int, Query(min_length=1), Query()]):
5151

5252
@app.get("/")
5353
async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
54-
pass
54+
pass # pragma: nocover
5555

5656
with pytest.raises(
5757
AssertionError,
@@ -63,7 +63,7 @@ async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
6363

6464
@app.get("/")
6565
async def get3(foo: Annotated[int, Query(min_length=1)] = Depends(dep)):
66-
pass
66+
pass # pragma: nocover
6767

6868

6969
def test_defaults():
@@ -75,4 +75,4 @@ def test_defaults():
7575

7676
@app.get("/")
7777
async def get(foo: int = Query()):
78-
pass
78+
pass # pragma: nocover

0 commit comments

Comments
 (0)