← Back to team overview

openerp-community team mailing list archive

running test files from the cli

 

Hi,

I've tried to play the good patriot and write a test for a coming commit,
but can't run the pre-existing yaml test file. Could someone help me out?

I have a db loaded with demo data and some basic modules (accounting is
important now only), I've edited account/test/account_customer_invoice.yml,
and would like to run it in this db.

using the arguments:
--test-file=addons/account/test/account_customer_invoice.yml -d testdb
--stop-after-init
(I've tried with --test-commit added too)

the test file gets loaded, and I get the following error:

ValueError: No references to account.account_invoice_customer0

This error is triggered (at first) by (line 35)

-
  I check that there is no move attached to the invoice
-
  !python {model: account.invoice}: |
    acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
    assert (not acc_id.move_id), "Move falsely created at pro-forma"

What point do I miss?

thx

Follow ups