Skip to content

Commit b216889

Browse files
committed
#447 corrected failing test
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent aac068c commit b216889

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/formattedcode/test_writers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ def test_scan_html_output_does_not_truncate_copyright(monkeypatch):
150150
test_dir = test_env.get_test_loc('do_not_truncate_copyright/scan/')
151151
runner = CliRunner()
152152
json_result_file = test_env.get_temp_file('test.json')
153-
json_result = runner.invoke(cli.scancode, [ '-clip', '--format', 'json', test_dir, json_result_file], catch_exceptions=True)
153+
json_result = runner.invoke(cli.scancode, [ '-clip', '--strip-root', '--format', 'json', test_dir, json_result_file], catch_exceptions=True)
154154
assert json_result.exit_code == 0
155155
assert 'Scanning done' in json_result.output
156156
expected_json = test_env.get_test_loc('do_not_truncate_copyright/expected.json')
157157

158158
check_scan(test_env.get_test_loc(expected_json), json_result_file, strip_dates=True, regen=False)
159159

160160
html_result_file = test_env.get_temp_file('test.html')
161-
html_result = runner.invoke(cli.scancode, [ '-clip', '--format', 'html', '-n', '3', test_dir, html_result_file], catch_exceptions=True)
161+
html_result = runner.invoke(cli.scancode, [ '-clip', '--strip-root', '--format', 'html', '-n', '3', test_dir, html_result_file], catch_exceptions=True)
162162
assert html_result.exit_code == 0
163163
assert 'Scanning done' in html_result.output
164164

0 commit comments

Comments
 (0)