Skip to content

Commit

Permalink
tests: Remove default value from dep function in contextmanager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenay committed Aug 24, 2024
1 parent ed90432 commit 2347f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/async/test_depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ async def func(a=Depends(dep)):

@pytest.mark.anyio
async def test_asynccontextmanager():
async def dep(a: str = "a"):
async def dep(a: str):
return a

@asynccontextmanager
Expand Down
2 changes: 1 addition & 1 deletion tests/sync/test_depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def func(a=Depends(dep)):


def test_contextmanager():
def dep(a: str = "a"):
def dep(a: str):
return a

@contextmanager
Expand Down

0 comments on commit 2347f8b

Please sign in to comment.