def test_sample_keys(mocker, keys, limit, expected_sample): mocker.patch( "pandas.Series.sample", return_value=[f"{SH_URL}/112358/13/21/item/5"], autospec=True, ) assert Report.sample_keys(keys, limit) == expected_sample
def test_sample_keys(mocker, keys, limit, sample_mock, expected_sample): mocker.patch("pandas.Series.sample", return_value=sample_mock, autospec=True) assert Report.sample_keys(keys, limit) == expected_sample