def post(): if request.method == 'POST': bills = Bill.add_bill(request.form["number"], request.form["sklad"], request.form["detail"], request.form["date_poluch"], request.form["price"], request.form["remontnik"]) return render_template('Bill/post_bill.html', title="Добавление накладных", menu=menu)
def test_b_add_bill(self): c = self.check_count() Bill.add_bill(1, 2, 9, "2019-08-05", 1999, 2) self.assertGreater(self.check_count(), c)