[FIX] pep8 line length to 80, activate pep8 check in travis, and add noqa on scenario while waiting improvement of quality-tools
This commit is contained in:
parent
a62a7e2f9c
commit
b4047063e1
@ -54,12 +54,16 @@ class test_account_partner_required(common.TransactionCase):
|
|||||||
'account_id': self.ref('account.a_sale')})
|
'account_id': self.ref('account.a_sale')})
|
||||||
move_line_id = self.move_line_obj.create(
|
move_line_id = self.move_line_obj.create(
|
||||||
self.cr, self.uid,
|
self.cr, self.uid,
|
||||||
{'move_id': move_id,
|
{
|
||||||
'name': '/',
|
'move_id': move_id,
|
||||||
'debit': amount,
|
'name': '/',
|
||||||
'credit': 0,
|
'debit': amount,
|
||||||
'account_id': self.ref('account.a_recv'),
|
'credit': 0,
|
||||||
'partner_id': self.ref('base.res_partner_1') if with_partner else False})
|
'account_id': self.ref('account.a_recv'),
|
||||||
|
'partner_id': self.ref('base.res_partner_1') if
|
||||||
|
with_partner else False
|
||||||
|
}
|
||||||
|
)
|
||||||
return move_line_id
|
return move_line_id
|
||||||
|
|
||||||
def _set_partner_policy(self, policy, aref='account.a_recv'):
|
def _set_partner_policy(self, policy, aref='account.a_recv'):
|
||||||
@ -116,6 +120,12 @@ class test_account_partner_required(common.TransactionCase):
|
|||||||
self.move_line_obj.write(self.cr, self.uid, line_id,
|
self.move_line_obj.write(self.cr, self.uid, line_id,
|
||||||
{'account_id': self.ref('account.a_pay')})
|
{'account_id': self.ref('account.a_pay')})
|
||||||
# change account to a_pay with policy always with partner -> ok
|
# change account to a_pay with policy always with partner -> ok
|
||||||
self.move_line_obj.write(self.cr, self.uid, line_id,
|
self.move_line_obj.write(
|
||||||
{'account_id': self.ref('account.a_pay'),
|
self.cr,
|
||||||
'partner_id': self.ref('base.res_partner_1')})
|
self.uid,
|
||||||
|
line_id,
|
||||||
|
{
|
||||||
|
'account_id': self.ref('account.a_pay'),
|
||||||
|
'partner_id': self.ref('base.res_partner_1')
|
||||||
|
}
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user