Skip to content

Commit ad852ec

Browse files
committed
Fix failing tests
Signed-off-by: Steven Esser <sesser@nexb.com>
1 parent 6415f1e commit ad852ec

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/test_cli.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,42 +135,42 @@ def test_write_csv_modified_new_license_added_low_score(self):
135135
expected_file = self.get_test_loc('cli/modified_new_license_added_low_score.csv')
136136
check_csvs(result_file, expected_file)
137137

138-
def test_generate_csv_license_info_removed(self):
138+
def test_write_csv_license_info_removed(self):
139139
new_scan = self.get_test_loc('cli/scan_new_license_info_removed.json')
140140
old_scan = self.get_test_loc('cli/scan_old_license_info_removed.json')
141141

142142
delta = DeltaCode(new_scan, old_scan)
143143
result_file = self.get_temp_file('.csv')
144-
cli.generate_csv(delta, result_file)
144+
cli.write_csv(delta, result_file)
145145
expected_file = self.get_test_loc('cli/license_info_removed.csv')
146146
check_csvs(result_file, expected_file)
147147

148-
def test_generate_csv_license_info_added(self):
148+
def test_write_csv_license_info_added(self):
149149
new_scan = self.get_test_loc('cli/scan_new_license_info_added.json')
150150
old_scan = self.get_test_loc('cli/scan_old_license_info_added.json')
151151

152152
delta = DeltaCode(new_scan, old_scan)
153153
result_file = self.get_temp_file('.csv')
154-
cli.generate_csv(delta, result_file)
154+
cli.write_csv(delta, result_file)
155155
expected_file = self.get_test_loc('cli/license_info_added.csv')
156156
check_csvs(result_file, expected_file)
157157

158-
def test_generate_csv_license_info_removed_below_cutoff_score(self):
158+
def test_write_csv_license_info_removed_below_cutoff_score(self):
159159
new_scan = self.get_test_loc('cli/scan_new_license_info_removed_below_cutoff_score.json')
160160
old_scan = self.get_test_loc('cli/scan_old_license_info_removed_below_cutoff_score.json')
161161

162162
delta = DeltaCode(new_scan, old_scan)
163163
result_file = self.get_temp_file('.csv')
164-
cli.generate_csv(delta, result_file)
164+
cli.write_csv(delta, result_file)
165165
expected_file = self.get_test_loc('cli/license_info_removed_below_cutoff_score.csv')
166166
check_csvs(result_file, expected_file)
167167

168-
def test_generate_csv_license_info_added_below_cutoff_score(self):
168+
def test_write_csv_license_info_added_below_cutoff_score(self):
169169
new_scan = self.get_test_loc('cli/scan_new_license_info_added_below_cutoff_score.json')
170170
old_scan = self.get_test_loc('cli/scan_old_license_info_added_below_cutoff_score.json')
171171

172172
delta = DeltaCode(new_scan, old_scan)
173173
result_file = self.get_temp_file('.csv')
174-
cli.generate_csv(delta, result_file)
174+
cli.write_csv(delta, result_file)
175175
expected_file = self.get_test_loc('cli/license_info_added_below_cutoff_score.csv')
176176
check_csvs(result_file, expected_file)

0 commit comments

Comments
 (0)