Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6825 Ansichten

Hello.

What is difference between two kinds of tests? If we can include python code to YAML, why it was needed to add python tests like in "lunch" or in "mail" module?

Thanks.

Avatar
Verwerfen
Beste Antwort

Some things are still not easy to do in YML, for example testing that a function raises an exception.

Also, the YML testing facility is completly Odoo-centric, whereas the python tests build upon well-known testing practices that most developper teams should be familiar with.

Avatar
Verwerfen
Autor

Thanks for your answer. How do you think do we need YML tests at all? In which areas it's better than python tests?

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Feb. 24
4307
0
Apr. 16
5055
0
März 25
1523
4
Apr. 24
174392
0
Dez. 23
2293