swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f99006606d8>
caplog = <_pytest.logging.LogCaptureFixture object at 0x7f99006700f0>
requests_ratelimited = <requests_mock.mocker.Mocker object at 0x7f98ffcefa58>
def test_anonymous_ratelimit(swh_scheduler, caplog, requests_ratelimited) -> None:
caplog.set_level(logging.DEBUG, "swh.lister.github.lister")
lister = GitHubLister(scheduler=swh_scheduler)
assert lister.github_session.anonymous
> assert "using anonymous mode" in caplog.records[-1].message
E IndexError: list index out of range
.tox/py3/lib/python3.7/site-packages/swh/lister/github/tests/test_lister.py:275: IndexError
TEST RESULT
TEST RESULT
- Run At
- Apr 25 2022, 3:49 PM