I have never tried to run the discovery unit tests, so I wouldn’t know what to tell you. From my experience, unit tests in Open edX require weird tools and folder structure. Basically, tutor is not well suited for hacking on the master branch of Open edX repos, so I usually just stick with the devstack for running unit tests.
Basically, tutor is not well suited for hacking on the master branch of Open edX repos
the above was not the use case, however
we just wanted to put logs (print statement) in the unit tests as some of the tests would provide us an easy way to understand the valid inputs to the Discovery’s APIs that are totally undocumented. I am assuming that your answer would not change for this use case as well
Oh, so you want to run unit tests in the named releases? This might just work. You will have to install the development requirements inside the docker container. Please post your findings here!
I have no idea, except that you should not install pytest manually with pip install -U pytest. Instead, you should simply install the requirements from test.txt.