Hello, Viktor! It`s bug. See https://bugs.launchpad.net/openobject-server/+bug/722472 And see my comment.
Now, you can only use `--update`. When `--update` given all tests in updated modules run. --test-file=addons/account/test/account_customer_invoice.yml -d testdb --stop-after-init --update=account 2011/8/15 Viktor Nagy <viktor.n...@toolpart.hu> > 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 > > _______________________________________________ > Mailing list: https://launchpad.net/~openerp-community > Post to : openerp-community@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openerp-community > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp