Skip to content

Commit ba71246

Browse files
committed
test: empty stanza in savedsearches.conf
1 parent 4b3e4dc commit ba71246

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/tests_standard_lib/test_addon_parser/test_savedsearches_parser.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
[empty_search_latest_time]
1414
search =
1515
dispatch.latest_time = -1s
16+
17+
[empty_search]
1618
"""
1719

1820

@@ -36,6 +38,12 @@ def test_get_savedsearches():
3638
"dispatch.earliest_time": "0",
3739
"dispatch.latest_time": "-1s",
3840
},
41+
{
42+
"stanza": "empty_search",
43+
"search": 'index = "main"',
44+
"dispatch.earliest_time": "0",
45+
"dispatch.latest_time": "now",
46+
},
3947
]
4048
savedsearches_parser = SavedSearchParser("unused_path")
4149
with patch("builtins.open", new_callable=mock_open, read_data=TEST_SAVEDSEARCHES):

0 commit comments

Comments
 (0)