Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6794 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
feb 24
4275
0
apr 16
5031
0
mar 25
1446
4
apr 24
174326
0
dic 23
2202