Skip to content

Commit

Permalink
Add test to testing series of async wrapper calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhestkov committed Feb 7, 2024
1 parent cc1a8b8 commit adf37e8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/pytests/unit/utils/test_asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ def test_basic_wrap():
assert ret is True


def test_basic_wrap_series():
"""
Test that we can wrap an asynchronous caller and call the method in series.
"""
sync = asynchronous.SyncWrapper(HelperA)
ret = sync.sleep()
assert ret is True
ret = sync.sleep()
assert ret is True


def test_double():
"""
Test when the asynchronous wrapper object itself creates a wrap of another thing
Expand Down

0 comments on commit adf37e8

Please sign in to comment.