diff --git a/tests/foreman/cli/test_repository.py b/tests/foreman/cli/test_repository.py index 9d3bad40467..e12f65a7bf2 100644 --- a/tests/foreman/cli/test_repository.py +++ b/tests/foreman/cli/test_repository.py @@ -1729,7 +1729,7 @@ def test_positive_upload_remove_srpm_content(self, repo, target_sat): 'content-type': 'srpm', } ) - assert f"Successfully uploaded file '{SRPM_TO_UPLOAD}'" in result[0]['message'] + assert f'Successfully uploaded file {SRPM_TO_UPLOAD}' in result[0]['message'] assert ( int(target_sat.cli.Repository.info({'id': repo['id']})['content-counts']['srpms']) == 1 ) @@ -2566,7 +2566,7 @@ def test_positive_upload_file_to_file_repo(self, repo_options, repo, target_sat) 'product-id': repo['product']['id'], } ) - assert f"Successfully uploaded file '{RPM_TO_UPLOAD}'" in result[0]['message'] + assert f'Successfully uploaded file {RPM_TO_UPLOAD}' in result[0]['message'] repo = target_sat.cli.Repository.info({'id': repo['id']}) assert repo['content-counts']['files'] == '1' filesearch = entities.File().search( @@ -2611,7 +2611,7 @@ def test_positive_remove_file(self, repo, target_sat): 'product-id': repo['product']['id'], } ) - assert f"Successfully uploaded file '{RPM_TO_UPLOAD}'" in result[0]['message'] + assert f'Successfully uploaded file {RPM_TO_UPLOAD}' in result[0]['message'] repo = target_sat.cli.Repository.info({'id': repo['id']}) assert int(repo['content-counts']['files']) > 0 files = target_sat.cli.File.list({'repository-id': repo['id']}) @@ -2776,7 +2776,7 @@ def test_file_repo_contains_only_newer_file(self, repo_options, repo, target_sat 'product-id': repo['product']['id'], } ) - assert f"Successfully uploaded file '{text_file_name}'" in result[0]['message'] + assert f"Successfully uploaded file {text_file_name}" in result[0]['message'] repo = target_sat.cli.Repository.info({'id': repo['id']}) # Assert there is only one file assert repo['content-counts']['files'] == '1' @@ -2794,7 +2794,7 @@ def test_file_repo_contains_only_newer_file(self, repo_options, repo, target_sat 'product-id': repo['product']['id'], } ) - assert f"Successfully uploaded file '{text_file_name}'" in result[0]['message'] + assert f"Successfully uploaded file {text_file_name}" in result[0]['message'] repo = target_sat.cli.Repository.info({'id': repo['id']}) # Assert there is still only one file assert repo['content-counts']['files'] == '1'