Upgrade syntax for `Python >= 3.8`.
parent
6147fb65e6
commit
81ab67953a
|
|
@ -6,6 +6,7 @@ repos:
|
||||||
rev: v3.3.1
|
rev: v3.3.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
|
args: ["--py38-plus"]
|
||||||
|
|
||||||
- repo: https://github.com/adamchainz/django-upgrade
|
- repo: https://github.com/adamchainz/django-upgrade
|
||||||
rev: 1.12.0
|
rev: 1.12.0
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class AdminInterfaceFixturesTestCase(TestCase):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __load_theme(self, theme_name):
|
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):
|
def test_import_initial_data(self):
|
||||||
call_command("loaddata", "initial_data.json")
|
call_command("loaddata", "initial_data.json")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue