Esempio n. 1
0
def test_all_callback_None(data):
    ctx = MockContext()
    assert info.all_handler(ctx, None, None) is None
Esempio n. 2
0
def test_all_callback(data):
    ctx = MockContext()
    ctx.obj['like'] = {'transform': 'foo'}
    assert info.all_handler(ctx, None, True) == {'transform': 'foo'}
Esempio n. 3
0
def test_all_callback(data):
    ctx = MockContext()
    ctx.obj["like"] = {"transform": "foo"}
    assert info.all_handler(ctx, None, True) == {"transform": "foo"}
Esempio n. 4
0
def test_all_callback_None(data):
    ctx = MockContext()
    assert info.all_handler(ctx, None, None) is None
Esempio n. 5
0
def test_all_callback(data):
    ctx = MockContext()
    ctx.obj['like'] = {'transform': 'foo'}
    assert info.all_handler(ctx, None, True) == {'transform': 'foo'}