Kludex / fastapi-microservices

Fully Python async FastAPI project! 🚀
MIT License
456 stars 44 forks source link

Attribute error async_generator #76

Open Tientjie-san opened 1 year ago

Tientjie-san commented 1 year ago

image

Thanks for the clean code! I got issues when i want to test my code, dont know how to fix this please help?

Kludex commented 1 year ago

Which command did you use to run that test?

Tientjie-san commented 1 year ago

coverage run -m pytest, the fixture i used, was the same as yours: image

changed the fixture to this and tests run correctly, but don't know if doing it this way can cause issues in the future?

image