Beispiel #1
0
def test__load_config__missing() -> None:

    with pytest.raises(ConfigLoadError):
        Utils.load_config(path=TestYAML.missing)
Beispiel #2
0
def test__load_config__invalid() -> None:

    with pytest.raises(ConfigLoadError):
        Utils.load_config(path=TestYAML.invalid)
Beispiel #3
0
def test__load_config__empty() -> None:

    config = Utils.load_config(path=TestYAML.empty)

    assert config == {}
Beispiel #4
0
def test__load_config__valid() -> None:

    config = Utils.load_config(path=TestYAML.valid)

    assert config["data"] == "valid"