Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use fixture instead of django.conf settings

Pacu2bcfef2b8196c
diff --git a/templates/_language_picker.html b/templates/_language_picker.html
index f95e8aead4..3ca42be259 100644
--- a/templates/_language_picker.html
+++ b/templates/_language_picker.html
@@ -1,5 +1,4 @@
{% load i18n %}
-{% load translate_url from urls %}
<li>
<div class="dropdown show">
diff --git a/tests/test_account.py b/tests/test_account.py
index 9250e0d073..b93fa51300 100644
--- a/tests/test_account.py
+++ b/tests/test_account.py
@@ -2,7 +2,6 @@ from urllib.parse import urlencode
import i18naddress
import pytest
-from django.conf import settings
from django.core.exceptions import ValidationError
from django.http import QueryDict
from django.template import Context, Template
@@ -114,7 +113,7 @@ def test_validate_possible_number(input, exception):
validate_possible_number(input)
-def test_order_with_lines_pagination(admin_client, order_list):
+def test_order_with_lines_pagination(admin_client, order_list, settings):
settings.PAGINATE_BY = 1
data = {'page': '1'}
url = reverse('account:details')