1. 27 Feb, 2015 1 commit
  2. 26 Feb, 2015 1 commit
  3. 25 Feb, 2015 2 commits
  4. 17 Feb, 2015 1 commit
  5. 04 Feb, 2015 2 commits
    • Better support specifying of modulestore configuration in test cases · b353ed2e
      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
  6. 06 Jan, 2015 1 commit
  7. 26 Dec, 2014 1 commit
  8. 11 Dec, 2014 1 commit
  9. 10 Dec, 2014 1 commit
  10. 05 Dec, 2014 2 commits
  11. 02 Dec, 2014 2 commits
  12. 01 Dec, 2014 5 commits
  13. 25 Nov, 2014 2 commits
  14. 10 Nov, 2014 1 commit
  15. 04 Nov, 2014 1 commit
  16. 31 Oct, 2014 1 commit
  17. 16 Oct, 2014 1 commit
  18. 14 Oct, 2014 1 commit
  19. 09 Oct, 2014 1 commit
  20. 08 Oct, 2014 3 commits
  21. 03 Oct, 2014 2 commits
  22. 29 Sep, 2014 1 commit
  23. 24 Sep, 2014 2 commits
  24. 22 Sep, 2014 1 commit
  25. 18 Sep, 2014 1 commit
  26. 12 Sep, 2014 1 commit
  27. 11 Sep, 2014 1 commit