Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7133 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
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?

Related Posts Odpovědi Zobrazení Aktivita
1
úno 24
4543
0
dub 16
5252
0
bře 25
1858
4
dub 24
174927
0
pro 23
2566