tests.mocks.MockAsyncCursor

Here are the examples of the python api tests.mocks.MockAsyncCursor taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : test_commands_interface.py
with MIT License
from zschumacher

    async def test_execute_async(self, sql, param, expected):
        handler = MockParamHandler(sql, param)
        async with MockAsyncCursor() as cursor:
            assert await handler.execute_async(cursor) == expected


class TestCommands: