コード例 #1
0
ファイル: test_argtypes.py プロジェクト: jkrass1/vimiv-qt
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
ファイル: test_argtypes.py プロジェクト: jkrass1/vimiv-qt
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"]]