Upgrade syntax for `Python >= 3.8`.

master
Fabio Caccamo 2023-02-10 16:21:36 +01:00
parent 6147fb65e6
commit 81ab67953a
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ repos:
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.12.0

View File

@ -12,7 +12,7 @@ class AdminInterfaceFixturesTestCase(TestCase):
pass
def __load_theme(self, theme_name):
call_command("loaddata", "admin_interface_theme_{}.json".format(theme_name))
call_command("loaddata", f"admin_interface_theme_{theme_name}.json")
def test_import_initial_data(self):
call_command("loaddata", "initial_data.json")