fix: allow config injection for sake of tests

per changes in wuttaweb, sideshow
This commit is contained in:
Lance Edgar 2025-07-06 14:09:11 -05:00
parent 198c3f77bb
commit bad6ded72d
4 changed files with 45 additions and 14 deletions

18
tests/test_config.py Normal file
View 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')