(self, name, age, address, balance, acc_type, mobile_number)
| 77 | |
| 78 | # ----------------- Customer ----------------- |
| 79 | def create_customer(self, name, age, address, balance, acc_type, mobile_number): |
| 80 | acc_no = self.acc_no |
| 81 | self.cur.execute( |
| 82 | "INSERT INTO bank VALUES (?, ?, ?, ?, ?, ?, ?)", |
| 83 | (acc_no, name, age, address, balance, acc_type, mobile_number), |
| 84 | ) |
| 85 | self.conn.commit() |
| 86 | self.acc_no += 1 |
| 87 | return acc_no |
| 88 | |
| 89 | def check_acc_no(self, acc_no): |
| 90 | self.cur.execute("SELECT 1 FROM bank WHERE acc_no=?", (acc_no,)) |
no outgoing calls
no test coverage detected