def test_find_iteration_wrong_mode(self): with pytest.raises(ValueError): _, _ = sansio.find_iteration("", itermode="python", iterkey="users")
def test_find_iteration_not_found(self): with pytest.raises(ValueError): _, _ = sansio.find_iteration("")
def test_find_iteration_custom_itermode(self): itermode, iterkey = sansio.find_iteration(methods.CHANNELS_LIST, itermode="timeline") assert itermode == "timeline" assert iterkey == methods.CHANNELS_LIST.value[2]
def test_find_iteration_custom_iterkey(self): itermode, iterkey = sansio.find_iteration(methods.CHANNELS_LIST, iterkey="users") assert itermode == methods.CHANNELS_LIST.value[1] assert iterkey == "users"
def test_find_iteration(self): itermode, iterkey = sansio.find_iteration(methods.CHANNELS_LIST) assert itermode == methods.CHANNELS_LIST.value[1] assert iterkey == methods.CHANNELS_LIST.value[2]