Discussion:
[tryton] Templates creation on tests standarized
Javier Uribe
2018-11-16 10:41:47 UTC
Permalink
Hello, I've noticed that we have to create products very often on scenario testing. I would like to propose a create_template method on product/tests/tools.py that would simplify this, so the scenarios that created templates were cleaner and more modular.

Thank you.
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/bf9d0d30-62e1-40be-a50c-892b6ed32927%40googlegroups.com.
Sergi Almacellas Abellana
2018-11-16 15:21:57 UTC
Permalink
Post by Javier Uribe
Hello, I've noticed that we have to create products very often on scenario testing. I would like to propose a create_template method on product/tests/tools.py that would simplify this, so the scenarios that created templates were cleaner and more modular.
I think think it will be very usefull as depending on the scenario you
will use diferent parameters: Use Services, Goods, With Diferent unit
prices, With Account Categories, without them, so we will end up with a
create_template method that will accept all the fields of the template.
In this case it's simpler to create the template directly.

Saludos,
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/4426889c-6cf8-a503-8309-23778f4f54bc%40koolpi.com.
Loading...