Fix linter

This commit is contained in:
Rémy Hubscher 2025-10-21 10:28:35 +02:00
parent 27b1263119
commit 0f74be9035
No known key found for this signature in database
GPG key ID: 71FB501114D76F22

View file

@ -6,7 +6,8 @@ from textwrap import dedent
from django.conf import settings
from django.core.management import CommandError
from django.core.management import call_command
from django.test import TransactionTestCase, override_settings
from django.test import TransactionTestCase
from django.test import override_settings
from django.utils import timezone
from django.utils.encoding import smart_str
@ -51,12 +52,12 @@ class CliTestCase(TransactionTestCase):
)
def test_get(self):
call_command("constance", *("get EMAIL_VALUE".split()), stdout=self.out)
call_command("constance", *(["get", "EMAIL_VALUE"]), stdout=self.out)
self.assertEqual(self.out.getvalue().strip(), "test@example.com")
def test_set(self):
call_command("constance", *("set EMAIL_VALUE blah@example.com".split()), stdout=self.out)
call_command("constance", *(["set", "EMAIL_VALUE", "blah@example.com"]), stdout=self.out)
self.assertEqual(config.EMAIL_VALUE, "blah@example.com")