diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/admin_inlines/test_templates.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/admin_inlines/test_templates.py')
| -rw-r--r-- | tests/admin_inlines/test_templates.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/tests/admin_inlines/test_templates.py b/tests/admin_inlines/test_templates.py index 5c8d7ce0c1..9ed4d65944 100644 --- a/tests/admin_inlines/test_templates.py +++ b/tests/admin_inlines/test_templates.py @@ -7,17 +7,19 @@ from django.test import SimpleTestCase class TestTemplates(SimpleTestCase): def test_javascript_escaping(self): context = { - 'inline_admin_formset': { - 'inline_formset_data': json.dumps({ - 'formset': {'prefix': 'my-prefix'}, - 'opts': {'verbose_name': 'verbose name\\'}, - }), + "inline_admin_formset": { + "inline_formset_data": json.dumps( + { + "formset": {"prefix": "my-prefix"}, + "opts": {"verbose_name": "verbose name\\"}, + } + ), }, } - output = render_to_string('admin/edit_inline/stacked.html', context) - self.assertIn('"prefix": "my-prefix"', output) - self.assertIn('"verbose_name": "verbose name\\\\"', output) + output = render_to_string("admin/edit_inline/stacked.html", context) + self.assertIn(""prefix": "my-prefix"", output) + self.assertIn(""verbose_name": "verbose name\\\\"", output) - output = render_to_string('admin/edit_inline/tabular.html', context) - self.assertIn('"prefix": "my-prefix"', output) - self.assertIn('"verbose_name": "verbose name\\\\"', output) + output = render_to_string("admin/edit_inline/tabular.html", context) + self.assertIn(""prefix": "my-prefix"", output) + self.assertIn(""verbose_name": "verbose name\\\\"", output) |
