fastapi-microservices icon indicating copy to clipboard operation
fastapi-microservices copied to clipboard

Attribute error async_generator

Open Tientjie-san opened this issue 1 year ago • 2 comments

image

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

Tientjie-san avatar Mar 31 '23 15:03 Tientjie-san

Which command did you use to run that test?

Kludex avatar Mar 31 '23 16:03 Kludex

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

Tientjie-san avatar Apr 01 '23 09:04 Tientjie-san