PluginMissingError: course

Problem

When trying to run tests inside an LMS (or Studio) container in devstack, you see an error PluginMissingError: course . This should only occur when running tests that inherit from SharedModulestoreTestCase.

Solution

I don't know the underlying cause, but reinstalling the requirements inside the container is what eventually worked from me.

  1. cd to your devstack directory
  2. Enter an LMS container by running lms-shell
  3. run make requirements
  4. When that finishes (even if there's some OpenEdX egg error), trying re-running your test.