Skip to content

Commit

Permalink
Merge pull request #47 from dskkato/fix_tests_for_windows
Browse files Browse the repository at this point in the history
#49 Fix for windows specific issue in csv reporter and test
  • Loading branch information
navarasu authored Jan 12, 2021
2 parents 16df2fb + e3068c4 commit fb77730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cvtest/csv_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def __create_file(self):
rmtree(dir_path)
os.makedirs(dir_path)
with open(self.__file_path, 'w') as f:
writer = csv.writer(f)
writer = csv.writer(f, lineterminator='\n')
writer.writerow(self.__fields)

def __append(self, values):
with open(self.__file_path, 'a') as f:
writer = csv.writer(f)
writer = csv.writer(f, lineterminator='\n')
writer.writerow(values)

def log_report(self, result):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_report_error():
assert len(values) == 4
assert values[-1][0] == 'error.png'
assert values[-1][1] == 'ERROR'
assert values[-1][2] == ROOT_DIR + '/tests/test_reporter.py:40;'
assert values[-1][2] == os.path.join(ROOT_DIR, 'tests', 'test_reporter.py:40;')

def process_image(image_path):
if image_path == "error.png":
Expand Down

0 comments on commit fb77730

Please sign in to comment.