-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Clean up all modulestore testcases #6078
Conversation
7a12f8d
to
c0833af
Compare
@benpatterson @muhammad-ammar could you please review? |
@@ -66,7 +67,12 @@ def get_json(self, path, data=None, follow=False, **extra): | |||
return self.get(path, data or {}, follow, HTTP_ACCEPT="application/json", **extra) | |||
|
|||
|
|||
@override_settings(MODULESTORE=TEST_DATA_MOCK_MODULESTORE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review note: This will make sure that the studio tests use the lightest weight modulestore by default. The studio testcases rely on this CourseTestCase class rather than ModuleStoreTestCase directly.
7d83887
to
ddb2858
Compare
@jzoldak as discussed, I 👍 the changes, with the idea that the tests being skipped now will be addressed in a subsequent PR. |
ddb2858
to
4bb9ffe
Compare
Move modulestore config for tests to an importable location Disable pylnt warning for lms imports in common tests Refactor all testcases that loaded all xml courses TE-610 TE-489
4bb9ffe
to
121b313
Compare
Clean up all modulestore testcases
@cpennington @ormsbee
I'm breaking the work of mocking out the modulestore into a couple pieces so it's not in a huge PR that touches a bazillion files.
This first PR is a cleanup of all unit testcases that need a modulestore but aren't actually testing the modulestore implementation. Let's get this in first. Next will be the PR that mocks out the modulestore.
Included in this PR:
An interesting aside is that PR #6061 that mocks out mongo is running unit tests in ~30 min. :)