콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6783 화면

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
4274
0
4월 16
5028
0
3월 25
1436
4
4월 24
174319
0
12월 23
2200