Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6803 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
Run individual unit test on v6.0 แก้ไขแล้ว
1
ก.พ. 24
4280
0
เม.ย. 16
5035
0
มี.ค. 25
1450
4
เม.ย. 24
174334
0
ธ.ค. 23
2206