Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
remove dump file at the end of the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Dec 14, 2014
1 parent 53dfbd1 commit 3e2fed5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/py/test_billing_payday.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

from decimal import Decimal as D
import os

import balanced
import mock
Expand Down Expand Up @@ -500,7 +501,9 @@ def test_payin_dumps_transfers_for_debugging(self, cch, fch):
with mock.patch.dict(__builtins__, {'open': open_}):
with self.assertRaises(Foobar):
Payday.start().payin()
assert open_.call_args_list[-1][0][0].endswith('_transfers.csv')
filename = open_.call_args_list[-1][0][0]
assert filename.endswith('_transfers.csv')
os.unlink(filename)


class TestPayout(Harness):
Expand Down

0 comments on commit 3e2fed5

Please sign in to comment.