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.

123456789101112131415161718192021222324252627282930313233343536373839
  1. from django.test import TestCase
  2. from oscar.apps.address.tests import *
  3. from oscar.apps.basket.tests import *
  4. from oscar.apps.order.tests import *
  5. from oscar.apps.catalogue.tests import *
  6. from oscar.apps.partner.tests import *
  7. from oscar.apps.checkout.tests import *
  8. from oscar.apps.payment.tests import *
  9. from oscar.apps.offer.tests import *
  10. from oscar.apps.shipping.tests import *
  11. from oscar.apps.customer.tests import *
  12. from oscar.apps.discount.tests import *
  13. from oscar.apps.promotions.tests import *
  14. from oscar.apps.catalogue.reviews.tests import *
  15. from oscar.apps.voucher.tests import *
  16. from oscar.apps.partner.tests import *
  17. from oscar.apps.dashboard.tests import *
  18. from oscar.core.tests import *
  19. from oscar.core.logging.tests import *
  20. import oscar
  21. class OscarTests(TestCase):
  22. def test_app_list_exists(self):
  23. core_apps = oscar.OSCAR_CORE_APPS
  24. self.assertTrue('oscar' in core_apps)
  25. def test_app_list_can_be_accessed_through_fn(self):
  26. core_apps = oscar.get_core_apps()
  27. self.assertTrue('oscar' in core_apps)
  28. def test_app_list_can_be_accessed_with_overrides(self):
  29. apps = oscar.get_core_apps(overrides=['apps.shipping'])
  30. self.assertTrue('apps.shipping' in apps)
  31. self.assertTrue('oscar.apps.shipping' not in apps)