mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-28 22:41:06 -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 *
|
||||
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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user