mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-29 06:51:10 -05:00
Move apiKey out of test files.
This commit is contained in:
parent
92a3807bcc
commit
c88f7e5f8d
4
test.py
4
test.py
@ -6,13 +6,15 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
from supybot.test import *
|
from supybot.test import *
|
||||||
|
import os
|
||||||
|
|
||||||
class WeatherTestCase(PluginTestCase):
|
class WeatherTestCase(PluginTestCase):
|
||||||
plugins = ('Weather',)
|
plugins = ('Weather',)
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
PluginTestCase.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):
|
def testWeather(self):
|
||||||
self.assertSnarfResponse('reload Weather', 'The operation succeeded.')
|
self.assertSnarfResponse('reload Weather', 'The operation succeeded.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user