Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6777 Переглядів

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
4274
0
квіт. 16
5028
0
бер. 25
1435
4
квіт. 24
174319
0
груд. 23
2199