Chris Moffitt  committed f1c9d2c

Add a fix to the custom product tests.

  • Participants
  • Parent commits 5925195

Comments (0)

Files changed (1)

File satchmo/apps/product/modules/custom/

 from django.test import TestCase
 from django.test.client import Client
 from django.utils.encoding import smart_str
+from django.utils.translation import get_language
+from django.contrib.sites.models import Site
 from keyedcache import cache_delete
 from l10n.models import Country
 from l10n.utils import moneyfmt
 from product.utils import rebuild_pricing
 from import get_satchmo_setting
 from import get_step1_post_data
+from django.core.cache import cache
 domain = ''
 prefix = get_satchmo_setting('SHOP_BASE')
         self.client = Client()
         self.US = Country.objects.get(iso2_code__iexact = "US")
+        current_site = Site.objects.get_current()
+        cache_key = "cat-%s-%s" % (, get_language())
+        cache.delete(cache_key)
     def tearDown(self):