Skip to content

Commit

Permalink
fix integration test fail on deprecation msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed Nov 23, 2023
1 parent ae9138d commit e7004e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+b2_uri_cmds.deprecated.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Deprecated `download-file-by-id` and `download-file-by-name`, use `download-file` instead.
Deprecated `get-file-info`, use `file-info` instead.
Deprecated `make-url` and `make-friendly-url`, use `get-url` instead.

2 changes: 1 addition & 1 deletion test/integration/test_b2_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -2742,7 +2742,7 @@ def assert_expected(file_info, expected=expected_file_info):
assert_expected(copied_version['fileInfo'])

download_output = b2_tool.should_succeed(
['download-file-by-id', file_version['fileId'], tmp_path / 'downloaded_file']
['download-file', f"b2id://{file_version['fileId']}", tmp_path / 'downloaded_file']
)
assert re.search(r'CacheControl: *max-age=3600', download_output)
assert re.search(r'ContentDisposition: *attachment', download_output)
Expand Down

0 comments on commit e7004e1

Please sign in to comment.