def setUp(self): config = { 'api_key': open(API_FILE).read().strip(), } self._plugin = base.load_plugin('weather.py', 'Weather', config=config) self._proto = base.TestProto([self._plugin]) self._boston = '/q/zmw:02101.1.99999' self._newry_me = '/q/zmw:04261.1.99999' self._ip = '209.6.43.0'
def setUp(self): cdir = os.path.realpath(os.path.dirname(__file__)) config = { 'api_key': open(os.path.join(cdir, 'db', 'weather-api-key')).read().strip(), } self._plugin = base.load_plugin('weather.py', 'Weather', config=config) self._proto = base.TestProto([self._plugin]) self._boston = '/q/zmw:02101.1.99999' self._ip = '209.6.43.0'
def setUp(self): fd, self._path = tempfile.mkstemp() os.close(fd) config = { 'ds': self._path, } self._plugin = base.load_plugin('karma.py', 'Karma', config=config) self._proto = base.TestProto([self._plugin])
def setUp(self): self.config = { 'responses': ['response'], 'url' : 'http://url.com', 'pre_verbs': ['make', 'modify'], 'post_verbs': ['should'], } self._plugin = base.load_plugin('source.py', 'Source', config=self.config, seed=0) self._proto = base.TestProto([self._plugin])
def setUp(self): config = {"api_key": ""} if os.path.exists(API_FILE): config["api_key"] = (open(API_FILE).read().strip(),) self._plugin = base.load_plugin("weather.py", "Weather", config=config) self._proto = base.TestProto([self._plugin]) self._boston = "/q/zmw:02101.1.99999" self._newry_me = "/q/zmw:04261.1.99999" self._ip = "209.6.43.0"
def setUp(self): self._plugin = base.load_plugin('urban_dictionary.py', 'UrbanDictionary') self._proto = base.TestProto([self._plugin])
def setUp(self): self._plugin = base.load_plugin('excuses.py', 'Excuses') self._proto = base.TestProto([self._plugin])
def setUp(self): self._plugin = base.load_plugin('humanid.py', 'HumanId') self._proto = base.TestProto([self._plugin])
def setUp(self): self._startup = base.load_plugin('startup.py', 'Startup') self._proto = base.TestProto([self._startup])
def setUp(self): self.config = {"verbosity": 1.0} self._plugin = base.load_plugin("trump.py", "Trump", config=self.config, seed=0) self._proto = base.TestProto([self._plugin])
def setUp(self): self._plugin = base.load_plugin('yesno.py', 'YesNo') self._proto = base.TestProto([self._plugin])
def setUp(self): self._plugin = base.load_plugin('sup.py', 'Sup') self._proto = base.TestProto([self._plugin])
def setUp(self): self._linker = base.load_plugin('linker.py', 'Linker') self._proto = base.TestProto([self._linker])
def setUp(self): cdir = os.path.realpath(os.path.dirname(__file__)) config = {'sprint': os.path.join(cdir, 'db', 'sprint.yaml')} self._plugin = base.load_plugin('sprint.py', 'SprintGoals', config=config, seed=0) self._proto = base.TestProto([self._plugin]) self._msg = 'adverb verb adjective noun'
def setUp(self): self._plugin = base.load_plugin('isitdown.py', 'IsItDown') self._proto = base.TestProto([self._plugin])