Skip to content
Open

Dev #11

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ async def async_char(c: str = Depends(char)) -> str:
@pytest.mark.asyncio
async def test_use_cache(self) -> None:
# arrange
from random import random as _random
from random import random as _rndm
def _random() -> float:
return _rndm()

random = dependant(_random)

Expand All @@ -84,7 +86,6 @@ def cached(
) -> float:
return r is x


# act / assert
assert await cached()

Expand Down