示例#1
0
def test_get_arguments_defaults():
    def foo(a, b=1):
        pass

    assert get_arguments(foo, []) == {'a': None, 'b': 1}
示例#2
0
def test_get_arguments_exclude():
    def foo(a, b, request):
        pass

    assert get_arguments(foo, ['request']) == {'a': None, 'b': None}
示例#3
0
def test_get_arguments_exclude():
    def foo(a, b, request):
        pass
    assert get_arguments(foo, ['request']) == {'a': None, 'b': None}
示例#4
0
def test_get_arguments():
    def foo(a, b):
        pass

    assert get_arguments(foo, []) == {'a': None, 'b': None}
示例#5
0
def test_get_arguments_defaults():
    def foo(a, b=1):
        pass
    assert get_arguments(foo, []) == {'a': None, 'b': 1}
示例#6
0
def test_get_arguments():
    def foo(a, b):
        pass
    assert get_arguments(foo, []) == {'a': None, 'b': None}
示例#7
0
def test_get_arguments_exclude():
    def foo(a, b, request):
        pass

    assert get_arguments(foo, ["request"]) == {"a": None, "b": None}
示例#8
0
def test_get_arguments_defaults():
    def foo(a, b=1):
        pass

    assert get_arguments(foo, []) == {"a": None, "b": 1}
示例#9
0
def test_get_arguments():
    def foo(a, b):
        pass

    assert get_arguments(foo, []) == {"a": None, "b": None}