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

Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[pytest]
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
addopts =
--strict-markers
3 changes: 3 additions & 0 deletions tests/peering/test_keepalive.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ async def test_background_task_runs(mocker, settings, namespaced_peering_resourc
assert sleep_mock.call_args_list[2][0][0] == 33 - 9

assert touch_mock.call_count == 4 # 3 updates + 1 clean-up

# An hack for `aresponses` that calls `sleep(0)` on finalization and fails on StopIteration.
mocker.stopall()
Loading