Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6793 Представления

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.

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Автор

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 Ответы Просмотры Активность
1
февр. 24
4275
0
апр. 16
5031
0
мар. 25
1445
4
апр. 24
174326
0
дек. 23
2202