From 193e4beeabd5efa9d975b2f9d91bb642f740573f Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Tue, 3 Dec 2024 17:38:36 +0100 Subject: [PATCH] fix typo (#546) * fix typo * fix: update test --------- Co-authored-by: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Co-authored-by: Tom Hu --- codecov_cli/commands/upload.py | 2 +- codecov_cli/services/upload/file_finder.py | 2 +- tests/commands/test_invoke_upload_coverage.py | 2 +- tests/commands/test_invoke_upload_process.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codecov_cli/commands/upload.py b/codecov_cli/commands/upload.py index 2b78f687..7d67ff30 100644 --- a/codecov_cli/commands/upload.py +++ b/codecov_cli/commands/upload.py @@ -162,7 +162,7 @@ def _turn_env_vars_into_dict(ctx, params, value): "--handle-no-reports-found", "handle_no_reports_found", is_flag=True, - help="Raise no excpetions when no coverage reports found.", + help="Raise no exceptions when no coverage reports found.", ), click.option( "--report-type", diff --git a/codecov_cli/services/upload/file_finder.py b/codecov_cli/services/upload/file_finder.py index 232dde41..f03745df 100644 --- a/codecov_cli/services/upload/file_finder.py +++ b/codecov_cli/services/upload/file_finder.py @@ -39,7 +39,7 @@ "*junit*.xml", "*test*.xml", # the actual JUnit (Java) prefixes the tests with "TEST-" - "*TEST-*.xml" + "*TEST-*.xml", ] coverage_files_excluded_patterns = [ diff --git a/tests/commands/test_invoke_upload_coverage.py b/tests/commands/test_invoke_upload_coverage.py index 3558ed06..bb620ec6 100644 --- a/tests/commands/test_invoke_upload_coverage.py +++ b/tests/commands/test_invoke_upload_coverage.py @@ -114,7 +114,7 @@ def test_upload_coverage_options(mocker): " -d, --dry-run Don't upload files to Codecov", " --legacy, --use-legacy-uploader", " Use the legacy upload endpoint", - " --handle-no-reports-found Raise no excpetions when no coverage reports", + " --handle-no-reports-found Raise no exceptions when no coverage reports", " found.", " --report-type [coverage|test_results]", " The type of the file to upload, coverage by", diff --git a/tests/commands/test_invoke_upload_process.py b/tests/commands/test_invoke_upload_process.py index 47f7e124..c5490e3b 100644 --- a/tests/commands/test_invoke_upload_process.py +++ b/tests/commands/test_invoke_upload_process.py @@ -114,7 +114,7 @@ def test_upload_process_options(mocker): " -d, --dry-run Don't upload files to Codecov", " --legacy, --use-legacy-uploader", " Use the legacy upload endpoint", - " --handle-no-reports-found Raise no excpetions when no coverage reports", + " --handle-no-reports-found Raise no exceptions when no coverage reports", " found.", " --report-type [coverage|test_results]", " The type of the file to upload, coverage by",