| Conditions | 7 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | # -*- coding: utf-8 -*- |
||
| 21 | def test_complete_run(self): |
||
| 22 | result_path = "testData/test_result.json" |
||
| 23 | try: |
||
| 24 | os.remove(result_path) |
||
| 25 | except OSError: |
||
| 26 | pass |
||
| 27 | assert os.path.isfile(result_path) == False |
||
| 28 | self.converter.run("testData/test_for_jsonConverter.csv", result_path) |
||
| 29 | assert os.path.isfile(result_path) == True |
||
| 30 | with open("testData/expected_result.json", 'r') as expected_result_file: |
||
| 31 | expected_result = expected_result_file.read() |
||
| 32 | with open(result_path, 'r') as result_file: |
||
| 33 | result = result_file.read() |
||
| 34 | assert expected_result == result |
||
| 35 | |||
| 41 | self.converter.write_dump_list_to_file.assert_called_once_with([{"dumpListElement1"}, {"dumpListElement2"}], "jsonPath") |