From 9b4688bfe05af7b47621c5998df30860978a0a77 Mon Sep 17 00:00:00 2001 From: vrenaville Date: Thu, 9 Oct 2014 09:26:38 +0200 Subject: [PATCH] [ADD] test file --- .../test/correct_date_in_move_line.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 statement_voucher_killer/test/correct_date_in_move_line.yml diff --git a/statement_voucher_killer/test/correct_date_in_move_line.yml b/statement_voucher_killer/test/correct_date_in_move_line.yml new file mode 100644 index 00000000..4bb22d9c --- /dev/null +++ b/statement_voucher_killer/test/correct_date_in_move_line.yml @@ -0,0 +1,29 @@ +- + In order to test if the correct date is set in the bank statement + I create a bank statement +- + !record {model: account.bank.statement, id: statement_test_date1}: + name: Statement for Date + journal_id: account.bank_journal + company_id: base.main_company + balance_end_real : 1000.0 +- + I create a statement line for a SO +- + !record {model: account.bank.statement.line, id: statement_line_so}: + name: Test autocompletion based on Sale Order Number + statement_id: statement_test_date1 + ref: DATE1 + date: '2014-12-20' + amount: 1000.0 +- + I confirm the bank statement +- + !python {model: account.bank.statement}: | + result = self.button_confirm_bank(cr, uid, [ref("statement_test_sale1")]) +- + Now I can check that all is nice and shiny, line 1. I expect the Sale Order + Number to be recognised. +- + !assert {model: account.move.line, statement_id: statement_test_date1, string: Check date in move line}: + - date == '2014-12-20'