diff options
| author | Alexandre Flament <alex@al-f.net> | 2023-02-20 12:17:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 12:17:38 +0100 |
| commit | d669da81fbe820df2d97c98560d00dee32979dc9 (patch) | |
| tree | 4cbaf3332893934640c8ff0724bcc2019b579618 /tests/unit/test_search.py | |
| parent | 60e181607def7b48185728e1fd395c0036bd65fb (diff) | |
| parent | 0b1444b61eb12a2d23d4c95e2440f24161daaec7 (diff) | |
Merge pull request #2027 from dalf/fix_2018
Add "auto" as a language.
Diffstat (limited to 'tests/unit/test_search.py')
| -rw-r--r-- | tests/unit/test_search.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/test_search.py b/tests/unit/test_search.py index fa16947be..33bf90840 100644 --- a/tests/unit/test_search.py +++ b/tests/unit/test_search.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from copy import copy + import searx.search from searx.search import SearchQuery, EngineRef from searx import settings @@ -34,6 +36,11 @@ class SearchQueryTestCase(SearxTestCase): self.assertEqual(s, s) self.assertNotEqual(s, t) + def test_copy(self): + s = SearchQuery('test', [EngineRef('bing', 'general')], 'all', 0, 1, None, None, None) + t = copy(s) + self.assertEqual(s, t) + class SearchTestCase(SearxTestCase): @classmethod |