import db_access import db_change values = { 'first_name': 'John', 'last_name': 'Doe', 'email': '[email protected]', } id = db_change.new_customer(values) # custs = get_all_customers() # for c in custs: # print(c) cust = db_access.get_customer_by_id(id) print(cust) db_change.update_customer(id, {'email': '*****@*****.**', 'last_name': 'Mason'}) cust = db_access.get_customer_by_id(id) print(cust) db_change.delete_customer(id) cust = db_access.get_customer_by_id(id) print(cust)
__author__ = 'Ben' import super_path import db_access import db_change custs = db_access.get_all_customers() for c in custs: print(c) db_change.delete_customer(600) print("\n" + ('='*50) + "\n") custs = db_access.get_all_customers() for c in custs: print(c)