Commit f17e6d42 authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

Flake8: fix F841 local variable assigned but never used

parent 265374810332
......@@ -42,7 +42,7 @@ class HelpersTC(CubicWebTC):
def create_and_submit_expense(self, cnx):
expense = cnx.create_entity('Expense', title=u'company expense')
lineeid = self.add_expense_line(cnx, expense, self.account1)
self.add_expense_line(cnx, expense, self.account1)
cnx.commit()
expense.cw_adapt_to('IWorkflowable').fire_transition('submit')
return expense
......@@ -60,8 +60,8 @@ class HelpersTC(CubicWebTC):
self.account_comp, self.accountfor = account_comp.eid, accountfor.eid
# expense creation
self.expense = add('Expense', title=u'sprint')
self.line1 = line1 = self.add_expense_line(cnx, self.expense, account1.eid)
line_comp = self.add_expense_line(cnx, self.expense, account_comp.eid)
self.add_expense_line(cnx, self.expense, account1.eid)
self.add_expense_line(cnx, self.expense, account_comp.eid)
cnx.commit()
self.accept(cnx, self.expense)
......
......@@ -99,7 +99,7 @@ class HooksTC(HelpersTC):
expense = cnx.create_entity('Expense', title=u'expense 2')
line1eid = self.add_expense_line(cnx, expense, self.account2)
line2eid = self.add_expense_line(cnx, expense, self.account2)
line3eid = self.add_expense_line(cnx, expense, self.account2)
self.add_expense_line(cnx, expense, self.account2)
self.add_relation(cnx, refund.eid, 'has_lines', line1eid)
self.add_relation(cnx, refund.eid, 'has_lines', line2eid)
cnx.commit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment