Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpnowacki-reef committed Oct 22, 2023
1 parent 46633f3 commit d0276a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/integration/test_b2_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def test_download(b2_tool, bucket_name):
def test_basic(b2_tool, bucket_name, is_running_on_docker):

file_to_upload = f'{TEMPDIR}/README.md'
uploaded_file_name = 'README.md'

file_mod_time_str = str(file_mod_time_millis(file_to_upload))

Expand Down Expand Up @@ -196,10 +195,10 @@ def test_basic(b2_tool, bucket_name, is_running_on_docker):
b2_tool.should_succeed(['make-url', second_c_version['fileId']])

b2_tool.should_succeed(
['make-friendly-url', bucket_name, file_to_upload],
['make-friendly-url', bucket_name, 'any-file-name'],
'^https://.*/file/{}/{}\r?$'.format(
bucket_name,
uploaded_file_name,
'any-file-name',
),
) # \r? is for Windows, as $ doesn't match \r\n
to_be_removed_bucket_name = b2_tool.generate_bucket_name()
Expand Down

0 comments on commit d0276a1

Please sign in to comment.