Skip to content

Commit

Permalink
Merge pull request #378 from tarunbhardwaj/develop
Browse files Browse the repository at this point in the history
Test fixed, no more default_accounts on sale.channel
  • Loading branch information
Sharoon Thomas committed Jun 4, 2015
2 parents be3c753 + b330b96 commit 199ceb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,6 @@ def setup_defaults(self):
'shipment_method': 'order',
'source': 'webshop',
'create_users': [('add', [USER])],
'default_account_expense':
self._get_account_by_kind('expense').id,
'default_account_revenue':
self._get_account_by_kind('revenue').id,
}])

self.User.set_preferences({'current_channel': self.channel})
Expand Down
1 change: 1 addition & 0 deletions tests/test_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def test_0010_download_invoice(self):
'sale': sale.id,
'amount': sale.total_amount,
'gateway': gateway,
'credit_account': party2.account_receivable.id,
}])
self.Sale.confirm([sale])
with Transaction().set_context(company=self.company.id):
Expand Down

0 comments on commit 199ceb2

Please sign in to comment.