Skip to content

Commit

Permalink
Edits tests
Browse files Browse the repository at this point in the history
Signed-off-by: arnav-mandal1234 <[email protected]>
  • Loading branch information
arnav-mandal1234 committed Aug 26, 2019
1 parent de61d43 commit 628fea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_deltacode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,20 +1645,20 @@ def test_similarity_matching_1(self):
result_file = self.get_temp_file('json')
args = ['--new', new_file, '--old', old_file, '--json-file', result_file, '--all-delta-types']
test_utils.run_scan_click(args)
test_utils.check_json_scan(self.get_test_loc('deltacode/coala-expected-result.json'), result_file, regen=True)
test_utils.check_json_scan(self.get_test_loc('deltacode/coala-expected-result.json'), result_file, regen=False)

def test_similarity_matching_2(self):
old_file = self.get_test_loc('deltacode/sugar-0.108.0-old.json')
new_file = self.get_test_loc('deltacode/sugar-0.114-new.json')
result_file = self.get_temp_file('json')
args = ['--new', new_file, '--old', old_file, '--json-file', result_file, '--all-delta-types']
test_utils.run_scan_click(args)
test_utils.check_json_scan(self.get_test_loc('deltacode/sugar-expected.json'), result_file, regen=True)
test_utils.check_json_scan(self.get_test_loc('deltacode/sugar-expected.json'), result_file, regen=False)

def test_non_similarity_matching_1(self):
old_file = self.get_test_loc('deltacode/coala-0.7.0-old.json')
new_file = self.get_test_loc('deltacode/sugar-0.114-new.json')
result_file = self.get_temp_file('json')
args = ['--new', new_file, '--old', old_file, '--json-file', result_file, '--all-delta-types']
test_utils.run_scan_click(args)
test_utils.check_json_scan(self.get_test_loc('deltacode/sugar-coala-expected.json'), result_file, regen=True)
test_utils.check_json_scan(self.get_test_loc('deltacode/sugar-coala-expected.json'), result_file, regen=False)

0 comments on commit 628fea1

Please sign in to comment.