Closed hd10180 closed 1 year ago
finally, after long time googling, i add an pytest.ini file in the root dir
[pytest]
asyncio_mode=auto
and then i replace all the loop
into event_loop
,
run pytest
i got the 279 passed, 2 skipped, 1018 warnings in 76.82s (0:01:16)
maybe not the right way but it seems work.
i clone the code, then run
pytest
or runpoetry run pytest
. it show lots ofCollectionWasNotInitialized
it seems like the init_beanie doesn't call or what i did wrong?@roman-right
anybody can help? by the way, i just want to know how to test the code using pytest and beanie
thanks for all.