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

Hello...

I have been developing modules for a while and testing them using the standard unittest library and the openerp orm to create data to test. I have avoided the use of yml as normally i'm testing models methods and it's output with another models, but i find it to be a bad process to create the data and test it using the orm, for not mentioning that sometimes test take a loong time to complete.

My question is... have anyone considered using the mock library for mocking the openerp models and if so, how did you do it?

I have been reading a little about the mock library and i think i understand it, but so far can't see how can be used to mock objects inside openerp.

Thanks in advance.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can refer the link if it may help you.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 24
4535
run single unit test case แก้ไขแล้ว
1
ม.ค. 24
14278
0
ต.ค. 23
1174
0
ต.ค. 23
1941
1
ม.ค. 23
3917