- 14 May, 2015 1 commit
-
-
Also, I replaced a number of tearDown methods with addCleanup instead. And also remove some unneeded patch.stopall() calls.
Ned Batchelder committed
-
- 17 Mar, 2015 1 commit
-
-
Ned Batchelder committed
-
- 04 Feb, 2015 2 commits
-
-
The existing pattern of using `override_settings(MODULESTORE=...)` prevented us from having more than one layer of subclassing in modulestore tests. In a structure like: @override_settings(MODULESTORE=store_a) class BaseTestCase(ModuleStoreTestCase): def setUp(self): # use store @override_settings(MODULESTORE=store_b) class ChildTestCase(BaseTestCase): def setUp(self): # use store In this case, the store actions performed in `BaseTestCase` on behalf of `ChildTestCase` would still use `store_a`, even though the `ChildTestCase` had specified to use `store_b`. This is because the `override_settings` decorator would be the innermost wrapper around the `BaseTestCase.setUp` method, no matter what `ChildTestCase` does. To remedy this, we move the call to `override_settings` into the `ModuleStoreTestCase.setUp` method, and use a cleanup to remove the override. Subclasses can just defined the `MODULESTORE` class attribute to specify which modulestore to use _for the entire `setUp` chain_. [PLAT-419]
Calen Pennington committed -
Calen Pennington committed
-
- 02 Dec, 2014 1 commit
-
-
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
Jesse Zoldak committed
-
- 25 Nov, 2014 1 commit
-
-
for visual indent
stv committed
-
- 14 Aug, 2014 1 commit
-
-
Jason Zhu committed
-
- 27 Jun, 2014 1 commit
-
-
Oleg Marshev committed
-
- 24 Jun, 2014 1 commit
-
-
Oleg Marshev committed
-