تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6672 أدوات العرض

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
فبراير 24
4156
0
أبريل 16
4891
0
مارس 25
1251
4
أبريل 24
173940
0
ديسمبر 23
2021