kopia lustrzana https://github.com/longclawshop/longclaw
Test and correction for ctx processor
rodzic
1d05882d46
commit
b0a85b8ee4
|
@ -1,4 +1,4 @@
|
|||
from django.conf import settings # import the settings file
|
||||
from longclaw import settings # import the settings file
|
||||
|
||||
def stripe_key(request):
|
||||
# return the value you want as a dictionnary. you may add multiple values in there.
|
||||
|
|
|
@ -60,7 +60,7 @@ class BasketTest(LongclawTestCase):
|
|||
self.assertIsNotNone(result)
|
||||
|
||||
def test_ctx_proc(self):
|
||||
self.assertIn('STRIPE_KEY', stripe_key())
|
||||
self.assertIn('STRIPE_KEY', stripe_key(None))
|
||||
|
||||
|
||||
class BasketModelTest(TestCase):
|
||||
|
|
|
@ -27,4 +27,4 @@ class StatsTest(TestCase):
|
|||
delta = timedelta(days=10)
|
||||
groups = stats.daily_sales(datetime.now() - delta, datetime.now() + delta)
|
||||
# We only create 1 order.
|
||||
assert len(list(groups)) == 1
|
||||
self.assertEqual(len(list(groups)), 1)
|
||||
|
|
Ładowanie…
Reference in New Issue