def test_success(self, config): config.INSTANCES = ["i1"] assert ConfigLoader._instances(config) is None
def test_failure(self, config): config.INSTANCES = "not a list" with pytest.raises(PluginValidationError): ConfigLoader._instances(config)
def test_missing(self, config): assert ConfigLoader._instances(config) is None