20 lines
526 B
Python
20 lines
526 B
Python
# -*- 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",
|
|
)
|