feat: add config option to show/hide Store ID; default value

This commit is contained in:
Lance Edgar 2025-01-27 20:33:14 -06:00
parent 3ef84ff706
commit 89e3445ace
19 changed files with 445 additions and 64 deletions

View file

@ -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")