Exemple #1
0
def test_run(search: Search):

    search.limit = 14
    search.limit_per_database = None

    acm_searcher.run(search)

    assert len(search.papers) == 14
Exemple #2
0
def test_run(search: Search):

    search.limit = 20
    search.limit_per_database = None
    search.since = datetime.date(2020, 8, 26)
    search.until = datetime.date(2020, 8, 26)

    arxiv_searcher.run(search)

    assert len(search.papers) == 18
def test_run(search: Search):

    search.limit = 26
    ieee_searcher.run(search, 'fake-api-token')

    assert len(search.papers) == 26

    with pytest.raises(AttributeError):
        ieee_searcher.run(search, '')

    with pytest.raises(AttributeError):
        ieee_searcher.run(search, None)
def test_run(search: Search):

    search.limit = 51
    pubmed_searcher.run(search)

    assert len(search.papers) == 51