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