From 8d2d52ae457465aedcb7045f4616565443982bcc Mon Sep 17 00:00:00 2001 From: FUNNYDMAN Date: Fri, 26 Oct 2018 11:43:35 +0300 Subject: [PATCH] fix typos in tests --- core/tests.py | 4 +++- eshop_project/settings/celery.py | 2 +- index/tests/test_views.py | 4 ++-- templates/index/index.html | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/tests.py b/core/tests.py index 7ce503c..4b8fdac 100644 --- a/core/tests.py +++ b/core/tests.py @@ -1,3 +1,5 @@ from django.test import TestCase -# Create your tests here. + +class BehaviourTestCaseMixin: + pass diff --git a/eshop_project/settings/celery.py b/eshop_project/settings/celery.py index baba91b..5c6610f 100644 --- a/eshop_project/settings/celery.py +++ b/eshop_project/settings/celery.py @@ -1,6 +1,6 @@ from .base import * -CELERY_BROKER_URL= env.str('CELERY_BROKER_URL') +CELERY_BROKER_URL = env.str('CELERY_BROKER_URL') CELERY_RESULT_BACKEND = env.str('CELERY_RESULT_BACKEND') CELERY_ACCEPT_CONTENT = tuple(env.list("CELERY_ACCEPT_CONTENT")) CELERY_RESULT_SERIALIZER = env.str('CELERY_RESULT_SERIALIZER') diff --git a/index/tests/test_views.py b/index/tests/test_views.py index b564f51..d800517 100644 --- a/index/tests/test_views.py +++ b/index/tests/test_views.py @@ -11,5 +11,5 @@ class IndexPageTest(TestCase): response = self.client.get(reverse('index:index')) self.assertEqual(response.status_code, 200) - self.assertEqual(response.resolver_match.func.func_name, views.IndexView.__name__) - self.assertTemplateUsed(response,template_name='index/index.html') + self.assertEqual(response.resolver_match.func.__name__, views.IndexView.__name__) + self.assertTemplateUsed(response, template_name='index/index.html') diff --git a/templates/index/index.html b/templates/index/index.html index d890fb6..3828d8a 100644 --- a/templates/index/index.html +++ b/templates/index/index.html @@ -76,7 +76,7 @@ {% endif %} {% if certs %} -
Наши сертефикаты
+
Наши сертификаты
{% for cert in certs %}