Exemple #1
0
def test_schema_invalid(conf):
    """Make sure we don't accept number for 'at' value."""
    with pytest.raises(vol.Invalid):
        time.TRIGGER_SCHEMA(conf)
Exemple #2
0
def test_schema_valid(conf):
    """Make sure we don't accept number for 'at' value."""
    time.TRIGGER_SCHEMA(conf)