Esempio n. 1
0
def test_validate_direction():
    validate.direction(Direction.CAUSE)
    validate.direction(Direction.EFFECT)

    with pytest.raises(ValueError):
        validate.direction("dogeeeee")

    validate.direction(Direction.BIDIRECTIONAL, allow_bi=True)
    with pytest.raises(ValueError):
        validate.direction(Direction.BIDIRECTIONAL)
Esempio n. 2
0
def test_validate_direction():
    validate.direction(Direction.CAUSE)
    validate.direction(Direction.EFFECT)

    with pytest.raises(ValueError):
        validate.direction("dogeeeee")

    validate.direction(Direction.BIDIRECTIONAL, allow_bi=True)
    with pytest.raises(ValueError):
        validate.direction(Direction.BIDIRECTIONAL)
Esempio n. 3
0
def test_validate_direction():
    with pytest.raises(ValueError):
        assert validate.direction("dogeeeee")
Esempio n. 4
0
def test_validate_direction():
    with pytest.raises(ValueError):
        assert validate.direction("dogeeeee")