fix: Examples
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from formats import print_bill
|
||||
from formats import BillPrinter
|
||||
from tools import load_json
|
||||
|
||||
if __name__ == "__main__":
|
||||
data = load_json('./test/fixtures/bill.json')
|
||||
print_bill(data, "", "")
|
||||
printer = BillPrinter("")
|
||||
printer.print_bill(data, "")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from formats import print_customer_order
|
||||
from formats import CustomerOrderPrinter
|
||||
from tools import load_json
|
||||
|
||||
if __name__ == "__main__":
|
||||
data = load_json('./test/fixtures/customer_order.json')
|
||||
print_customer_order(data, "", "")
|
||||
printer = CustomerOrderPrinter("")
|
||||
printer.print_order(data, "")
|
||||
|
||||
Reference in New Issue
Block a user