Fix tests

This commit is contained in:
Gavin M. Roy 2015-05-14 15:59:59 -04:00
parent 0f4afdf229
commit 380c9001ce

View file

@ -27,11 +27,7 @@ class HandlerMixinTest(unittest.TestCase):
def setUp(self, mock_init): def setUp(self, mock_init):
self.mock_init = mock_init self.mock_init = mock_init
os.environ['BAR_HOST'] = 'db1' os.environ['PGSQL_BAR'] = 'postgres://foo:baz@db1:5433/bar'
os.environ['BAR_PORT'] = '5433'
os.environ['BAR_DBNAME'] = 'bar'
os.environ['BAR_USER'] = 'foo'
os.environ['BAR_PASSWORD'] = 'baz'
self.mixin = MixinRequestHandler() self.mixin = MixinRequestHandler()
self.mixin.initialize() self.mixin.initialize()
@ -46,11 +42,7 @@ class AsyncHandlerMixinTest(unittest.TestCase):
def setUp(self, mock_init): def setUp(self, mock_init):
self.mock_init = mock_init self.mock_init = mock_init
os.environ['BAZ_HOST'] = 'db2' os.environ['PGSQL_BAZ'] = 'postgres://qux:corgie@db2:5434/baz'
os.environ['BAZ_PORT'] = '5434'
os.environ['BAZ_DBNAME'] = 'baz'
os.environ['BAZ_USER'] = 'qux'
os.environ['BAZ_PASSWORD'] = 'corgie'
self.mixin = AsyncMixinRequestHandler() self.mixin = AsyncMixinRequestHandler()
self.mixin.initialize() self.mixin.initialize()