-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix lms & cms container environments to run tests without modification #23
Comments
@bradenmacdonald can you just leave a comment here? GH won't let me make you an assignee until you do. |
@kdmccormick Sure. |
@bradenmacdonald I'm going to start poking at this as I have time this week, and I'll post here if I learn anything. I don't know if your situation makes you more or less likely to work on this 😛 but if you do, let me know what you find! |
Ok sounds good @kdmccormick. Please let me know what you end up finding either way :) |
Also, explain some of the unavoidable complexity around the overlap of the LMS and CMS suites, and how to best run tests in all parts of the LMS/CMS Venn diagram. Dependent on an upstream fix, which makes it so devs don't need to fiddle with DJANGO_SETTINGS_MODULE: openedx/edx-platform#30298 Resolves https://github.com/overhangio/2u-tutor-adoption/issues/48
I've got a couple WIP PRs:
Haven't fully confirmed that they solve the problem, but I'm hopeful... |
Also, explain some of the unavoidable complexity around the overlap of the LMS and CMS suites, and how to best run tests in all parts of the LMS/CMS Venn diagram. Dependent on an upstream fix, which makes it so devs don't need to fiddle with DJANGO_SETTINGS_MODULE: openedx/edx-platform#30298 Resolves https://github.com/overhangio/2u-tutor-adoption/issues/48
The two PRs above are ready for feedback. |
Going to come back to this issue after the conference. See overhangio/tutor#648 (comment) |
unfortunately I haven't been able to dig into this more, so I'm unassigning myself for now. @bradenmacdonald were you still hoping to look into this, or should I unassign you? |
@kdmccormick I don't think I'll have time anytime soon unfortunately. |
Context
Here are the instructions on how to run tests in Tutor: https://docs.tutor.overhang.io/dev.html#running-edx-platform-unit-tests
Notice that:
lms
container must be used, even forcms
testspytest
on each root folder (lms, cms, common, openedx, xmodule).Both of these limitations are awkward and potential stumbling blocks for developers.
Note on lms vs cms tests
edx-platform runs in one of two modes: LMS (the learning/instruction interface & APIs) and CMS (Studio and authoring APIs). Some code is specific to LMS or CMS, and some code is shared between the two. Both LMS and CMS have their own Django settings files.
In the edx-platform source tree...
@skip_unless_lms
and@skip_unless_cms
, respectively.edx-platform's PR checks ensure that the above is always true on the master branch.
Acceptance
Tweak edx-platform's test setup and/or Tutor's cms+lms dev container environments such that, without having to change any environment variables:
lms
container using LMS Django settings.cms
container using CMS Django settings.In other words, these should just work:
Notes
The text was updated successfully, but these errors were encountered: