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
|
@ -13,3 +13,16 @@ class TestPendingCustomer(DataTestCase):
|
|||
|
||||
store.name = "Acme Goods"
|
||||
self.assertEqual(str(store), "Acme Goods")
|
||||
|
||||
store.store_id = "001"
|
||||
self.assertEqual(str(store), "001 Acme Goods")
|
||||
|
||||
def test_get_display(self):
|
||||
store = mod.Store()
|
||||
self.assertEqual(store.get_display(), "")
|
||||
|
||||
store.name = "Acme Goods"
|
||||
self.assertEqual(store.get_display(), "Acme Goods")
|
||||
|
||||
store.store_id = "001"
|
||||
self.assertEqual(store.get_display(), "001 Acme Goods")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue