mirror of
https://github.com/sprockets/sprockets.mixins.postgresql.git
synced 2024-11-21 19:28:35 +00:00
Fix tests
This commit is contained in:
parent
0f4afdf229
commit
380c9001ce
1 changed files with 2 additions and 10 deletions
12
tests.py
12
tests.py
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue