def test_parse_missing(service_config_missing): with pytest.raises(PackitInvalidConfigException): Config.get_from_dict(service_config_missing)
def test_parse_valid(service_config_valid): config = Config.get_from_dict(service_config_valid) assert config.deployment == Deployment("prod")