コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6805 ビュー

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?

関連投稿 返信 ビュー 活動
1
2月 24
4281
0
4月 16
5036
0
3月 25
1451
4
4月 24
174334
0
12月 23
2207