I want to write tests on v8 modules, but dont seem to find a way to use new api. In all examples I see that cr, uid is still used etc. Is it possible to write tests with new api. If so how (any references etc)?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
Hello Andrius Laukavičius,
Yes, you can write tests using all new api stuff.
like,
from openerp.tests import common
class testPartnerCreate(common.TransactionCase):
def setUp(self):
super(testPartnerCreate, self).setUp()
def test_create(self):
res_partner = self.env['res.partner']
test_partner1 = res_partner.create(
dict(
name="Demo bhai",
city="test city",
email="demo@test.com",
))
......
Hope this will help.
Regards....
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
12월 19
|
3151 | ||
|
2
12월 24
|
2329 | ||
|
1
11월 22
|
3595 | ||
|
2
2월 22
|
5704 | ||
|
1
2월 22
|
4072 |