Skip to content

Commit

Permalink
when testing downloading stdout on Windows ignore '\r'
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed Nov 15, 2023
1 parent 3825359 commit 21873bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration/test_b2_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -2694,15 +2694,15 @@ def test_download_file_stdout(
):
assert b2_tool.should_succeed(
['download-file-by-name', '--quiet', bucket_name, uploaded_sample_file['fileName'], '-'],
) == sample_filepath.read_text()
).replace("\r", "") == sample_filepath.read_text()
assert b2_tool.should_succeed(
['download-file-by-id', '--quiet', uploaded_sample_file['fileId'], '-'],
) == sample_filepath.read_text()
).replace("\r", "") == sample_filepath.read_text()


def test_cat(b2_tool, bucket_name, sample_filepath, tmp_path, uploaded_sample_file):
assert b2_tool.should_succeed(
['cat', f"b2://{bucket_name}/{uploaded_sample_file['fileName']}"],
) == sample_filepath.read_text()
assert b2_tool.should_succeed(['cat', f"b2id://{uploaded_sample_file['fileId']}"]
) == sample_filepath.read_text()
).replace("\r", "") == sample_filepath.read_text()
assert b2_tool.should_succeed(['cat', f"b2id://{uploaded_sample_file['fileId']}"
],).replace("\r", "") == sample_filepath.read_text()

0 comments on commit 21873bf

Please sign in to comment.