summaryrefslogtreecommitdiffstats
path: root/tests/string_fixer_test.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-16 11:18:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-16 11:18:13 +0000
commit535187ceaf88786aaf22560790564f1f6965ba30 (patch)
tree82456c5d0bc77961759812ddd85414435ba89127 /tests/string_fixer_test.py
parentAdding upstream version 4.4.0+dfsg. (diff)
downloadpre-commit-hooks-535187ceaf88786aaf22560790564f1f6965ba30.tar.xz
pre-commit-hooks-535187ceaf88786aaf22560790564f1f6965ba30.zip
Adding upstream version 4.5.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/string_fixer_test.py')
-rw-r--r--tests/string_fixer_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/string_fixer_test.py b/tests/string_fixer_test.py
index 9dd7315..8eb164c 100644
--- a/tests/string_fixer_test.py
+++ b/tests/string_fixer_test.py
@@ -37,6 +37,12 @@ TESTS = (
1,
),
('"foo""bar"', "'foo''bar'", 1),
+ pytest.param(
+ "f'hello{\"world\"}'",
+ "f'hello{\"world\"}'",
+ 0,
+ id='ignore nested fstrings',
+ ),
)