Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6799 Prikazi

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
Opusti
Best Answer

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
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
1
feb. 24
4276
0
apr. 16
5034
0
mar. 25
1449
4
apr. 24
174329
0
dec. 23
2204