def METHOD_NAME(requests_mock, stream, response_mocks, expected_records, request):
    stream = request.getfixturevalue(stream)
    requests_mock.get("/api/v4/projects/p_1", json=[{"id": "p_1"}])
    for url, json in response_mocks:
        requests_mock.get(url, json=json)
    records_iter = iter(expected_records)
    for stream_slice in stream.stream_slices(sync_mode="full_refresh"):
        for record in stream.read_records(sync_mode="full_refresh", stream_slice=stream_slice):
            assert record == next(records_iter)