def test_all_callback_None(data): ctx = MockContext() assert all_handler(ctx, None, None) is None
def test_all_callback(data): ctx = MockContext() ctx.obj['like'] = {'transform': 'foo'} assert all_handler(ctx, None, True) == {'transform': 'foo'}
def test_all_callback_pass(): ctx = MockContext() ctx.obj['like'] = {'transform': 'foo'} assert all_handler(ctx, None, None) is None