2025-07-06 14:09:11 -05:00
|
|
|
# -*- coding: utf-8; -*-
|
|
|
|
|
|
|
|
from wuttjamaican.testing import ConfigTestCase
|
|
|
|
|
|
|
|
from sideshow_corepos import config as mod
|
|
|
|
|
|
|
|
|
|
|
|
class TestSideshowCoreposConfig(ConfigTestCase):
|
|
|
|
|
|
|
|
def test_basic(self):
|
|
|
|
|
2025-08-31 13:02:02 -05:00
|
|
|
self.assertIsNone(self.config.get("wutta.batch.neworder.handler.spec"))
|
2025-07-06 14:09:11 -05:00
|
|
|
|
|
|
|
ext = mod.SideshowCoreposConfig()
|
|
|
|
ext.configure(self.config)
|
|
|
|
|
2025-08-31 13:02:02 -05:00
|
|
|
self.assertEqual(
|
|
|
|
self.config.get("wutta.batch.neworder.handler.spec"),
|
|
|
|
"sideshow_corepos.batch.neworder:NewOrderBatchHandler",
|
|
|
|
)
|