You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings_tests.py 580B

12345678910111213141516171819
  1. from django.test import TestCase
  2. import oscar
  3. class OscarTests(TestCase):
  4. def test_app_list_exists(self):
  5. core_apps = oscar.OSCAR_CORE_APPS
  6. self.assertTrue('oscar' in core_apps)
  7. def test_app_list_can_be_accessed_through_fn(self):
  8. core_apps = oscar.get_core_apps()
  9. self.assertTrue('oscar' in core_apps)
  10. def test_app_list_can_be_accessed_with_overrides(self):
  11. apps = oscar.get_core_apps(overrides=['apps.shipping'])
  12. self.assertTrue('apps.shipping' in apps)
  13. self.assertTrue('oscar.apps.shipping' not in apps)