swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f0648358a58>
def test_maven_full_listing(swh_scheduler):
"""Covers full listing of multiple pages, checking page results and listed
origins, statelessness."""
# Run the lister.
lister = MavenLister(
scheduler=swh_scheduler,
url=MVN_URL,
instance="maven.org",
index_url=INDEX_URL,
incremental=False,
)
stats = lister.run()
# Start test checks.
assert stats.pages == 5
scheduler_origins = swh_scheduler.get_listed_origins(lister.lister_obj.id).results
origin_urls = [origin.url for origin in scheduler_origins]
# 3 git origins + 1 maven origin with 2 releases (one per jar)
> assert len(origin_urls) == 3
E AssertionError: assert 4 == 3
E + where 4 = len(['git://github.com/ArangoDB-Community/arangodb-graphql-java.git', 'git://github.com/aldialimucaj/sprova4j.git', 'https://github.com/aldialimucaj/sprova4j', 'https://repo1.maven.org/maven2/al/aldi/sprova4j'])
.tox/py3/lib/python3.7/site-packages/swh/lister/maven/tests/test_lister.py:140: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 20 2022, 5:52 PM