Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6778 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 24
4274
0
apr. 16
5028
0
mrt. 25
1435
4
apr. 24
174319
0
dec. 23
2199