diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2026-01-18 21:26:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 21:26:56 +0100 |
| commit | 6cff02078799b7c683a0d39630d49ab4fe532e7c (patch) | |
| tree | 9813fc94d952942117b23d61231b9e89a8cab1c2 /tests/serializers | |
| parent | 0d31ca98830542088299d2078402891d08cc3a65 (diff) | |
Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Diffstat (limited to 'tests/serializers')
| -rw-r--r-- | tests/serializers/test_deserialization.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/serializers/test_deserialization.py b/tests/serializers/test_deserialization.py index b6a0818c42..f4be93957a 100644 --- a/tests/serializers/test_deserialization.py +++ b/tests/serializers/test_deserialization.py @@ -144,15 +144,13 @@ class TestDeserializer(SimpleTestCase): nested_close = "</nested>" * depth leaf = "x" * leaf_text_len field_content = f"{nested_open}{leaf}{nested_close}" - crafted_xml = textwrap.dedent( - f""" + crafted_xml = textwrap.dedent(f""" <django-objects version="1.0"> <object model="contenttypes.contenttype" pk="1"> <field name="app_label">{field_content}</field> <field name="model">m</field> </object> - </django-objects>""" - ) + </django-objects>""") msg = "Unexpected element: 'nested'" with self.assertRaisesMessage(SuspiciousOperation, msg): |
