Beispiel #1
0
def test_command_history_direction():
    # Would raise exception if a name is invalid
    # pylint: disable=expression-not-assigned
    [argtypes.HistoryDirection(name) for name in ["next", "prev"]]
Beispiel #2
0
def test_fail_command_history_direction():
    with pytest.raises(ValueError, match="not a valid HistoryDirection"):
        argtypes.HistoryDirection("other")
Beispiel #3
0
def test_command_history_direction():
    # Would raise exception if a name is invalid
    [argtypes.HistoryDirection(name) for name in ["next", "prev"]]