Ejemplo n.º 1
0
def test_instantiate_config_fails() -> None:
    with pytest.raises(TypeError):
        BaseContainer(element_type=Any, parent=None)  # type: ignore
Ejemplo n.º 2
0
def test_instantiate_config_fails() -> None:
    with pytest.raises(TypeError):
        BaseContainer()  # type: ignore
Ejemplo n.º 3
0
def test_config_eq_mismatch_types() -> None:
    c1 = OmegaConf.create({})
    c2 = OmegaConf.create([])
    assert not BaseContainer._config_eq(c1, c2)
    assert not BaseContainer._config_eq(c2, c1)