File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11NEW_SEPARATOR_TOKENS = ["|" , "…" ]
22NEW_NON_SEPARATOR_TOKENS = ["@" , "#" ]
33
4+
45def test_get_separator_tokens_default (empty_index ):
56 """Tests getting the default value of separator tokens."""
67 separator_tokens = empty_index ().get_separator_tokens ()
78 assert separator_tokens == []
89
10+
911def test_get_non_separator_tokens_default (empty_index ):
1012 """Tests getting the default value of separator tokens."""
1113 non_separator_tokens = empty_index ().get_separator_tokens ()
1214 assert non_separator_tokens == []
1315
16+
1417def test_update_separator_tokens (empty_index ):
1518 """Tests updating the separator tokens."""
1619 index = empty_index ()
@@ -22,6 +25,7 @@ def test_update_separator_tokens(empty_index):
2225 for token in NEW_SEPARATOR_TOKENS :
2326 assert token in separator_tokens
2427
28+
2529def test_update_non_separator_tokens (empty_index ):
2630 """Tests updating the non separator tokens."""
2731 index = empty_index ()
@@ -52,6 +56,7 @@ def test_reset_separator_tokens(empty_index):
5256 separator_tokens = index .get_separator_tokens ()
5357 assert separator_tokens == []
5458
59+
5560def test_non_reset_separator_tokens (empty_index ):
5661 """Tests resetting the separator tokens to its default empty list."""
5762 index = empty_index ()
You can’t perform that action at this time.
0 commit comments