gleb-sevruk / pycrunch-engine

NCrunch inspired tool for continuous testing Python
https://pycrunch.com
Other
57 stars 8 forks source link

async test for method in class not discovered. #62

Closed vegaroy13 closed 10 months ago

vegaroy13 commented 2 years ago

Hi, I wonder if you can help me in this situation.

I want to have a class and do async tests. If I run my tests with pytest in the command line and also by using unittest, this code runs, but, pycrunch seems not to discover (or maybe my error is other).

In this image, if the word 'async' is ommited, the test is shown and executed (incorrectly)

pycrunch

If I make it work, as an async test, the test is not discovered:

pycrunch2

I also tryed the recommended code in: https://github.com/gleb-sevruk/pycrunch-engine/issues/52

but is not discovered, or maybe I need some special config.

pycrunch3

Thank you very much in advanced. (BTW, very cool tool!!!)

AbstractiveNord commented 1 year ago

+1

gleb-sevruk commented 10 months ago

That is now fixed thanks to https://github.com/gleb-sevruk/pycrunch-engine/pull/100 and https://github.com/gleb-sevruk/pycrunch-engine/pull/101

vegaroy13 commented 10 months ago

Oh Thank You. Just update to back-front last updates (1.6.1) and works over python 3.10. Previous versions of python will fail due to syntax updated code not supported.