feat: add config option to show/hide Store ID; default value
This commit is contained in:
parent
3ef84ff706
commit
89e3445ace
19 changed files with 445 additions and 64 deletions
|
@ -16,6 +16,16 @@ class TestOrderHandler(DataTestCase):
|
|||
def make_handler(self):
|
||||
return mod.OrderHandler(self.config)
|
||||
|
||||
def test_expose_store_id(self):
|
||||
handler = self.make_handler()
|
||||
|
||||
# false by default
|
||||
self.assertFalse(handler.expose_store_id())
|
||||
|
||||
# config can enable
|
||||
self.config.setdefault('sideshow.orders.expose_store_id', 'true')
|
||||
self.assertTrue(handler.expose_store_id())
|
||||
|
||||
def test_get_order_qty_uom_text(self):
|
||||
enum = self.app.enum
|
||||
handler = self.make_handler()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue