Replace str.format with f-strings.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user