[Erp5-dev] How to test quantity step?
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Wed Oct 10 13:45:27 CEST 2007
Hello,
On 2007-10-10, 12:49:14
Jérome Perrin <jerome at nexedi.com> wrote:
> > 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.
Ok. I'll try to do it by magic with REQUESTs. If I achieve needed
results I'll share them ASAP. But if anyone has better solution it is
badly needed.
Regards,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
More information about the Erp5-dev
mailing list