Skip to content

Commit

Permalink
Merge branch 'pp/extra_search_engines' into pp/se_api
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Feb 6, 2025
2 parents 60bbf13 + e44eec8 commit 2f01161
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/web/search/test_web_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@


@flaky(max_runs=3, min_passes=1)
@pytest.mark.parametrize("queries",[['1. "Python Programming Language"'],
['1. "Python Programming Language"',
"Python"],])
@pytest.mark.parametrize("queries", [['1. "Python Programming Language"'],
['1. "Python Programming Language"',
"Python"],])
@pytest.mark.parametrize("se", SE_TO_TEST)
@pytest.mark.asyncio
async def test_basic_search_query(queries, se):
Expand Down Expand Up @@ -68,9 +68,9 @@ async def _tps(obj, page, search_query):
assert not out[1]


@pytest.mark.parametrize("queries",[['1. "Python Programming Language"'],
['1. "Python Programming Language"',
"Python"],])
@pytest.mark.parametrize("queries", [['1. "Python Programming Language"'],
['1. "Python Programming Language"',
"Python"],])
@pytest.mark.parametrize("num_results_multiplier", [0, 1, 5])
@pytest.mark.asyncio
async def test_search_query_num_results(queries, num_results_multiplier):
Expand Down
4 changes: 4 additions & 0 deletions tests/web/test_osti.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"""
import os
import tempfile

from flaky import flaky

from elm import OstiList


Expand All @@ -27,6 +30,7 @@ def test_osti_from_url():
assert len(docs) == 12


@flaky(max_runs=5, min_passes=1)
def test_osti_from_oids():
"""Test osti list, make sure we can find specific oids from storage futures
study"""
Expand Down

0 comments on commit 2f01161

Please # to comment.