aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-11-15 01:21:33 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2019-11-15 01:21:33 +0100
commit2779a912a8fbe29453543a8fd2888a842c3beb47 (patch)
treef0a0a1dcde0e79cdbf4a8caa879b524c1b47e4e4 /tests/utils
parentMove payload checks to start of DuckPond.on_raw_reaction_add (diff)
Add `return_value` support and assertions to AsyncIteratorMock
The AsyncIteratorMock included in Python 3.8 will work similarly to the mocks of callabes. This means that it allows you to set the items it will yield using the `return_value` attribute. It will also have support for the common Mock-specific assertions. This commit introduces some backports of those features in a slightly simplified way to make the transition to Python 3.8 easier in the future.
Diffstat (limited to 'tests/utils')
0 files changed, 0 insertions, 0 deletions