Closed sy-be closed 5 months ago
@cybergrind , please take a look. Thanks!
Probably we could make it smaller if use auto mode, could you please check if it do the trick?
# pytest.ini
[pytest]
asyncio_mode = auto
Nice, thanks! I've reduced the PR further and tests pass.
@sy-be thank you! <3 merged
Awesome, thanks! 🎉
Fixes broken tests as described in https://github.com/micro-fan/aiozk/issues/84
In
aiozk.transaction.Transaction.commit
I think we should also check for thereply
to be of typeCreate2Response
(which I added), otherwiseresult
evaluates toFalse
and the context manager test which only callsTransaction.create()
never succeeds.I also added missing pytest.mark.asyncio decorators to test functions & pytest_asyncio.fixture decorators to async fixtures to correctly handle async tests.
Additionally updated base images to help with docker builds, albeit those images also seems to be based on outdated Ubuntu versions.
Nevertheless, my local tox runs now succeed with the changes in this PR