diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-09 12:17:58 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-12 15:25:58 +0200 |
commit | df12ed6e5563e9c78c98ca31ee11ce5fc508bc2a (patch) | |
tree | ea6271d1bee6e803e0200b7db50bd0b6d5ce56c4 /tests/unit/test_query.py | |
parent | 2370234d0978f59dd62efa4a4931e41ad31444d1 (diff) | |
download | searxng-df12ed6e5563e9c78c98ca31ee11ce5fc508bc2a.tar.gz searxng-df12ed6e5563e9c78c98ca31ee11ce5fc508bc2a.zip |
[mod] searx.RawTextQuery: the constructor call parse_query
Diffstat (limited to 'tests/unit/test_query.py')
-rw-r--r-- | tests/unit/test_query.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/unit/test_query.py b/tests/unit/test_query.py index 86bf445e3..f2cf842a4 100644 --- a/tests/unit/test_query.py +++ b/tests/unit/test_query.py @@ -7,7 +7,6 @@ class TestQuery(SearxTestCase): def test_simple_query(self): query_text = 'the query' query = RawTextQuery(query_text, []) - query.parse_query() self.assertEqual(query.getFullQuery(), query_text) self.assertEqual(len(query.query_parts), 1) @@ -19,7 +18,6 @@ class TestQuery(SearxTestCase): query_text = 'the query' full_query = ':' + language + ' ' + query_text query = RawTextQuery(full_query, []) - query.parse_query() self.assertEqual(query.getFullQuery(), full_query) self.assertEqual(len(query.query_parts), 3) @@ -32,7 +30,6 @@ class TestQuery(SearxTestCase): query_text = 'the query' full_query = ':' + language + ' ' + query_text query = RawTextQuery(full_query, []) - query.parse_query() self.assertEqual(query.getFullQuery(), full_query) self.assertEqual(len(query.query_parts), 3) @@ -44,7 +41,6 @@ class TestQuery(SearxTestCase): query_text = 'the query' full_query = ':' + language + ' ' + query_text query = RawTextQuery(full_query, []) - query.parse_query() self.assertEqual(query.getFullQuery(), full_query) self.assertEqual(len(query.query_parts), 3) @@ -56,7 +52,6 @@ class TestQuery(SearxTestCase): query_text = 'the query' full_query = ':' + language + ' ' + query_text query = RawTextQuery(full_query, []) - query.parse_query() self.assertEqual(query.getFullQuery(), full_query) self.assertEqual(len(query.query_parts), 1) @@ -66,7 +61,6 @@ class TestQuery(SearxTestCase): def test_timeout_below100(self): query_text = '<3 the query' query = RawTextQuery(query_text, []) - query.parse_query() self.assertEqual(query.getFullQuery(), query_text) self.assertEqual(len(query.query_parts), 3) @@ -76,7 +70,6 @@ class TestQuery(SearxTestCase): def test_timeout_above100(self): query_text = '<350 the query' query = RawTextQuery(query_text, []) - query.parse_query() self.assertEqual(query.getFullQuery(), query_text) self.assertEqual(len(query.query_parts), 3) @@ -86,7 +79,6 @@ class TestQuery(SearxTestCase): def test_timeout_above1000(self): query_text = '<3500 the query' query = RawTextQuery(query_text, []) - query.parse_query() self.assertEqual(query.getFullQuery(), query_text) self.assertEqual(len(query.query_parts), 3) @@ -97,7 +89,6 @@ class TestQuery(SearxTestCase): # invalid number: it is not bang but it is part of the query query_text = '<xxx the query' query = RawTextQuery(query_text, []) - query.parse_query() self.assertEqual(query.getFullQuery(), query_text) self.assertEqual(len(query.query_parts), 1) |