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"]]
def test_fail_scroll_direction(): with pytest.raises(ValueError, match="not a valid Direct"): argtypes.Direction("other")
def test_scroll_direction(): # Would raise exception if a name is invalid [argtypes.Direction(name) for name in ["left", "right", "up", "down"]]