def test_success(self, config): config.ENVIRONMENT = {"foo": "bar"} assert ConfigLoader._environment(config) is None
def test_failure(self, config, env): config.ENVIRONMENT = env with pytest.raises(PluginValidationError): ConfigLoader._environment(config)
def test_missing(self, config): assert ConfigLoader._environment(config) is None