fix: allow config injection for sake of tests
per changes in wuttaweb, sideshow
This commit is contained in:
parent
198c3f77bb
commit
bad6ded72d
4 changed files with 45 additions and 14 deletions
18
tests/test_config.py
Normal file
18
tests/test_config.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
from wuttjamaican.testing import ConfigTestCase
|
||||
|
||||
from sideshow_corepos import config as mod
|
||||
|
||||
|
||||
class TestSideshowCoreposConfig(ConfigTestCase):
|
||||
|
||||
def test_basic(self):
|
||||
|
||||
self.assertIsNone(self.config.get('wutta.batch.neworder.handler.spec'))
|
||||
|
||||
ext = mod.SideshowCoreposConfig()
|
||||
ext.configure(self.config)
|
||||
|
||||
self.assertEqual(self.config.get('wutta.batch.neworder.handler.spec'),
|
||||
'sideshow_corepos.batch.neworder:NewOrderBatchHandler')
|
Loading…
Add table
Add a link
Reference in a new issue