Replace str.format with f-strings.

This commit is contained in:
Fabio Caccamo
2022-12-06 13:44:32 +01:00
parent 819fa13b1e
commit 98b8025ed7
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class AdminInterfaceModelsTestCase(TestCase):
def test_str(self):
theme = Theme.get_active_theme()
self.assertEqual("{0}".format(theme), "Django")
self.assertEqual(f"{theme}", "Django")
# class AdminInterfaceModelsMultiDBTestCase(TestCase):