跳至内容
菜单
此问题已终结
1 回复
6815 查看

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
4290
0
4月 16
5041
0
3月 25
1502
4
4月 24
174351
0
12月 23
2264