Tests: Avoid error when nothing to test
This commit is contained in:
parent
2653c58a8f
commit
5317cbd3ec
1 changed files with 3 additions and 2 deletions
|
@ -46,8 +46,9 @@ def get_test_scrapers():
|
|||
|
||||
def pytest_generate_tests(metafunc):
|
||||
if 'scraperobj' in metafunc.fixturenames:
|
||||
metafunc.parametrize('scraperobj', get_test_scrapers(),
|
||||
ids=operator.attrgetter('name'))
|
||||
scrapers = get_test_scrapers()
|
||||
scraperids = list(x.name for x in scrapers)
|
||||
metafunc.parametrize('scraperobj', scrapers, ids=scraperids)
|
||||
|
||||
|
||||
class LoadModScheduling(LoadScopeScheduling):
|
||||
|
|
Loading…
Reference in a new issue