示例#1
0
def test_scroll_direction():
    # Would raise exception if a name is invalid
    # pylint: disable=expression-not-assigned
    [argtypes.Direction(name) for name in ["left", "right", "up", "down"]]
示例#2
0
def test_fail_scroll_direction():
    with pytest.raises(ValueError, match="not a valid Direct"):
        argtypes.Direction("other")
示例#3
0
def test_scroll_direction():
    # Would raise exception if a name is invalid
    [argtypes.Direction(name) for name in ["left", "right", "up", "down"]]