Test case fails if shop currency is not $

Issue #187 resolved
Former user created an issue

The test case on line 179 in shop/tests.py (source:satchmo/trunk/satchmo/shop/tests.py:818#L179) fails if the currency of your shop is set to something different than '$'. This is because the currency variable is set to the currency of your shop whereas the response text always seems to use '$' which can cause a mismatch.

{{{ self.assertContains(response, smart_str("Total = %s54.60" % currency), count=1, status_code=200) }}}

Reported by nils

Comments (1)

  1. Chris Moffitt repo owner

    In [835] I ended up updating the test fixture data to define 'USD' as the currency symbol. This will override any existing settings and should be a good test value.

  2. Log in to comment