Skip to content

Commit

Permalink
Assert counts (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiven-anton authored Oct 29, 2022
1 parent 6929ba7 commit fbddfc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def dependent(
return plain, nested

assert (1, 1) == dependent()
assert 1 == count

def test_reevaluates_resolved_value_with_differing_args(self):
count = 0
Expand All @@ -130,6 +131,7 @@ def dependent(
return plain, nested

assert (1, 2) == dependent()
assert 2 == count

# TODO
@pytest.mark.xfail
Expand Down Expand Up @@ -280,6 +282,7 @@ async def dependent(
return plain, nested

assert (1, 1) == await dependent()
assert 1 == count

async def test_reevaluates_resolved_value_with_differing_args(self):
count = 0
Expand All @@ -300,3 +303,4 @@ async def dependent(
return plain, nested

assert (1, 2) == await dependent()
assert 2 == count

0 comments on commit fbddfc1

Please sign in to comment.