@pytest.mark.parametrize('params, query', [((10, 30, TestRunResultFilters(status=[TestRunResultStatus.FAILED])), '?limit=10&offset=30&filters%5Bstatus%5D=failed'), ((None, 30, None), '?offset=30'), ((10, None, None), '?limit=10'), ((None, None, TestRunResultFilters(status=[TestRunResultStatus.FAILED])), '?filters%5Bstatus%5D=failed')])
def test_get_all_test_run_results(client, params, query):
    response = _status_true(_list(_test_run_result()))
    with requests_mock.Mocker() as m:
        m.get(client._path('result/CODE'), json=response)
        data = client.results.get_all('CODE', *params)
        assert (data == converter.structure(response.get('result'), TestRunResultList))
        res = client.results._last_res
        assert (res.url == client._path(('result/CODE' + query)))
@pytest.mark.parametrize('params, query', [((10, 30, TestRunResultFilters(status=[TestRunResultStatus.FAILED])), '?limit=10&offset=30&filters%5Bstatus%5D=failed'), ((None, 30, None), '?offset=30'), ((10, None, None), '?limit=10'), ((None, None, TestRunResultFilters(status=[TestRunResultStatus.FAILED])), '?filters%5Bstatus%5D=failed')])
def test_get_all_test_run_results(client, params, query):
    response = _status_true(_list(_test_run_result()))
    with requests_mock.Mocker() as m:
        m.get(client._path('result/CODE'), json=response)
        data = client.results.get_all('CODE', *params)
        assert (data == converter.structure(response.get('result'), TestRunResultList))
        res = client.results._last_res
        assert (res.url == client._path(('result/CODE' + query)))