Upgrade syntax for `Python >= 3.8`.
parent
6147fb65e6
commit
81ab67953a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue