From c88f7e5f8dcf205da369a69ecb7658fff647966f Mon Sep 17 00:00:00 2001 From: spline Date: Sun, 12 Oct 2014 05:57:25 -0400 Subject: [PATCH] Move apiKey out of test files. --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 7b5bcbc..3ea0dee 100644 --- a/test.py +++ b/test.py @@ -6,13 +6,15 @@ ### from supybot.test import * +import os class WeatherTestCase(PluginTestCase): plugins = ('Weather',) def setUp(self): PluginTestCase.setUp(self) - conf.supybot.plugins.Weather.apiKey.setValue('fc7cb609a45365fa') + apiKey = os.environ.get('apiKey') + conf.supybot.plugins.Weather.apiKey.setValue(apiKey) def testWeather(self): self.assertSnarfResponse('reload Weather', 'The operation succeeded.')