datadir = '/var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/data'
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f167f9c2e48>
tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_opam_multi_instance0')
def test_opam_multi_instance(datadir, swh_scheduler, tmp_path):
instance_url = f"file://{datadir}/fake_opam_repo"
lister = OpamLister(
swh_scheduler,
url=instance_url,
instance="fake",
opam_root=mkdtemp(dir=tmp_path, prefix="swh_opam_lister"),
)
stats = lister.run()
assert stats.pages == 4
> assert stats.origins == 4
E assert 0 == 4
E + where 0 = ListerStats(pages=4, origins=0).origins
.tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/test_lister.py:157: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Nov 4 2022, 3:20 PM