Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6818 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for your answer. How do you think do we need YML tests at all? In which areas it's better than python tests?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
4297
0
thg 4 16
5048
0
thg 3 25
1512
4
thg 4 24
174367
0
thg 12 23
2279