Test and correction for ctx processor

pull/94/head
JamesRamm 2017-09-30 00:11:46 +02:00
rodzic 1d05882d46
commit b0a85b8ee4
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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.

Wyświetl plik

@ -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):

Wyświetl plik

@ -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)