summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-27 09:16:03 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-27 09:16:03 +0100
commitfcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c (patch)
tree3e508c94d5ac69869aa69fc686cd54e02bfcad27 /tests
parentc849731eb1df23b8509a947fcc2807adb34dc730 (diff)
downloadsearxng-fcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c.tar.gz
searxng-fcdc2c2cd26e24c2aa3f064d93cee3e29dc2a30c.zip
[format.python] disable py code formatting for some hunks of code
Disable the python code formatting from python-black, where the readability of code suffers by formatting. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_results.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/unit/test_results.py b/tests/unit/test_results.py
index 07d170130..aa99e78c7 100644
--- a/tests/unit/test_results.py
+++ b/tests/unit/test_results.py
@@ -8,10 +8,14 @@ def fake_result(url='https://aa.bb/cc?dd=ee#ff',
title='aaa',
content='bbb',
engine='wikipedia', **kwargs):
- result = {'url': url,
- 'title': title,
- 'content': content,
- 'engine': engine}
+ result = {
+ # fmt: off
+ 'url': url,
+ 'title': title,
+ 'content': content,
+ 'engine': engine,
+ # fmt: on
+ }
result.update(kwargs)
return result