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)
def test_validate_direction(): with pytest.raises(ValueError): assert validate.direction("dogeeeee")