[Erp5-dev] How to test quantity step?

Jérome Perrin jerome at nexedi.com
Wed Oct 10 12:49:14 CEST 2007


Łukasz Nowak a écrit :
> Hello,
> 
> I'm playing lot with purchase supplies and I'd like to write test for
> quantity step on purchase supply line.
> 

Hi,
I already tried to test exactly the same thing about one year ago, but 
gave up.

> Any suggestions? What API (if any available) shall be used from unit
> test point of view?

Matrix cells are created in Base_edit, there's no real API for this.
Maybe you can call Base_edit in your test, but you have to fake REQUEST 
correctly ... I didn't try this.

Jérome



More information about the Erp5-dev mailing list