I’m following the guidelines published here, however, this guide omits the “Getting Started” material. Thus far i’ve reasoned that the following is necessary on a native build of any version of open edx:
- launch the edxapp virtual environment using these commands
sudo -H -u edxapp bash
- install additional pip requirements using these commands
pip install -r requirements/*.txt
pip install pytest-json-report
pip install pytest-cov
pip install pyquery==1.4.0
pip install nose==1.3.7
however, i still encounter three types of problems.
First, custom settings that i’ve added to lms/envs/production.py as well as lms/envs/test.py are not found by the testing programs, regardless of whether i use paver, pytest or manage.py.
QUESTION: where else do i need to add my custom configuration settings?
Second, (and perhaps more urgently) all tests that i’ve attempted so far fail with the message, “pymongo.errors.OperationFailure: there are no users authenticated”.
QUESTION: how do i provide an authenticated user to mongo?
Third, when i try to test with manage.py the sqlite database it creates is missing all of my custom models. these are found and are currently running on the subject open edx instance, however, the manage.py code doesn’t see them.
QUESTION: Why doesn’t manage.py’s test functionality see my models?