def test_config_0_9_0b5_api_renamed(self): # Load configuration and start master. # TODO: check for expected warnings. configfile = self._write_config(sample_0_9_0b5_api_renamed) with assertNotProducesWarnings(DeprecatedWorkerAPIWarning): _, loaded_config = config.loadConfigDict(".", configfile.path) yield self._run_master(loaded_config)
def test_config_0_9_0b5(self): # Load configuration and start master. # TODO: check for expected warnings. configfile = self._write_config(sample_0_9_0b5) with assertProducesWarnings( DeprecatedWorkerNameWarning, messages_patterns=[ r"'buildbot\.plugins\.buildslave' plugins namespace is deprecated", r"'slavenames' keyword argument is deprecated", r"c\['slaves'\] key is deprecated"]): _, loaded_config = config.loadConfigDict(".", configfile.path) yield self._run_master(loaded_config)