Skip to content

Commit f53c4ea

Browse files
committed
run black
1 parent 9e736f7 commit f53c4ea

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/test_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _create_query(text: str, plugin, keyword: str = "*", is_requery: bool = Fals
1919
"rawQuery": f"{keyword} {text}",
2020
"search": text,
2121
"actionKeyword": keyword,
22-
"isReQuery": False
22+
"isReQuery": False,
2323
},
2424
plugin,
2525
)

tests/test_search_handlers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,16 @@ async def test_handler_result(tester: PluginTester, handler: SearchHandler):
7272
result = response.results[0]
7373
assert result.title == "Title"
7474

75+
7576
@pytest.mark.asyncio
7677
async def test_handler_error(plugin: Plugin, tester: PluginTester):
7778
@plugin.search()
7879
async def handler(query: Query):
7980
raise TypeError("Boo")
80-
81+
8182
@handler.error
8283
async def error_handler(query: Query, error: Exception):
8384
assert isinstance(error, TypeError)
8485
assert str(error) == "Boo"
85-
86-
await tester.test_query("bar")
86+
87+
await tester.test_query("bar")

0 commit comments

Comments
 (0)