Changeset View
Changeset View
Standalone View
Standalone View
swh/search/tests/test_translator.py
# Copyright (C) 2021 The Software Heritage developers | |||||
# See the AUTHORS file at the top-level directory of this distribution | |||||
# License: GNU General Public License version 3, or any later version | |||||
# See top-level LICENSE file for more information | |||||
import pytest | import pytest | ||||
from swh.search.translator import Translator | from swh.search.translator import Translator | ||||
from swh.search.utils import get_expansion | from swh.search.utils import get_expansion | ||||
def _test_results(query, expected): | def _test_results(query, expected): | ||||
output = Translator().parse_query(query) | output = Translator().parse_query(query) | ||||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |