def test_get_valid_callable_from_callable(): strat = (lambda: None) valid = {"doesn't matter": (lambda: None)} # not even touched interally assert _get_callable(strat, valid)() is None
def test_get_valid_callable_from_string(): strat = "strategy" valid = {strat: (lambda: None)} assert _get_callable(strat, valid)() is None