codecov / codecov-cli

Codecov's Command Line Interface. Used for uploading to Codecov in your CI, Test Labelling, Local Upload, and more
Apache License 2.0
54 stars 38 forks source link

chore: consistent naming of upload options #473

Closed giovanni-guidini closed 2 months ago

giovanni-guidini commented 2 months ago

Makes the --report-code of do-upload to also accept --code. This makes it consistent with other commands.

closes codecov/feedback#380

github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 2 failed, 690 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
| |
Testsuite:
tests.commands.test_invoke_upload_process::test_upload_process_options

Test name:
pytest
|
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f860a7a2ee0>

def test_upload_process_options(mocker):
runner = CliRunner()
fake_ci_provider = FakeProvider({FallbackFieldEnum.commit_sha: None})
mocker.patch("codecov_cli.main.get_ci_adapter", return_value=fake_ci_provider)
with runner.isolated_filesystem():
runner = CliRunner()
result = runner.invoke(cli, ["upload-process", "-h"], obj={})
assert result.exit_code == 0
print(result.output)

> assert result.output.split("\n")[1:] == [
"Usage: cli upload-process [OPTIONS]",
"",
"Options:",
" -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]",
" -Z, --fail-on-error Exit with non-zero code in case of error",
" --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]",
" -t, --token TEXT Codecov upload token",
" -r, --slug TEXT owner/repo slug used instead of the private",
" repo token in Self-hosted",
" --report-code TEXT The code of the report. If unsure, leave",
" default",
" --network-root-folder PATH Root folder from which to consider paths on",
" the network section [default: (Current",
" working directory)]",
" -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH",
" Folder where to search for coverage files",
" [default: (Current Working Directory)]",
" --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH",
" Folders to exclude from search",
" -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH",
" Explicit files to upload. These will be added",
" to the coverage files found for upload. If you",
" wish to only upload the specified files,",
" please consider using --disable-search to",
" disable uploading other files.",
" --disable-search Disable search for coverage files. This is",
" helpful when specifying what files you want to",
" upload with the --file option.",
" --disable-file-fixes Disable file fixes to ignore common lines from",
" coverage (e.g. blank lines or empty brackets)",
" -b, --build, --build-code TEXT Specify the build number manually",
" --build-url TEXT The URL of the build where this is running",
" --job-code TEXT",
" -n, --name TEXT Custom defined name of the upload. Visible in",
" Codecov UI",
" -B, --branch TEXT Branch to which this commit belongs to",
" -P, --pr, --pull-request-number TEXT",
" Specify the pull request number mannually.",
" Used to override pre-existing CI environment",
" variables",
" -e, --env, --env-var TEXT Specify environment variables to be included",
" with this build.",
" -F, --flag TEXT Flag the upload to group coverage metrics.",
" Multiple flags allowed.",
" --plugin TEXT",
" -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",
" found.",
" --report-type [coverage|test_results]",
" The type of the file to upload, coverage by",
" default. Possible values are: testing,",
" coverage.",
" --network-filter TEXT Specify a filter on the files listed in the",
" network section of the Codecov report. This",
" will only add files whose path begin with the",
" specified filter. Useful for upload-specific",
" path fixing",
" --network-prefix TEXT Specify a prefix on files listed in the",
" network section of the Codecov report. Useful",
" to help resolve path fixing",
" --parent-sha TEXT SHA (with 40 chars) of what should be the",
" parent of this commit",
" -h, --help Show this message and exit.",
"",
]
E assert ['Usage: cli ...server]', ...] == ['Usage: cli ...server]', ...]
E At index 9 diff: ' --code, --report-code TEXT The code of the report. If unsure, leave' != ' --report-code TEXT The code of the report. If unsure, leave'
E Full diff:
E [
E 'Usage: cli upload-process [OPTIONS]',
E '',
E 'Options:',
E ' -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]',
E ' -Z, --fail-on-error Exit with non-zero code in case of error',
E ' --git-service '
E '[github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]',
E ' -t, --token TEXT Codecov upload token',
E ' -r, --slug TEXT owner/repo slug used instead of the '
E 'private',
E ' repo token in Self-hosted',
E - ' --report-code TEXT The code of the report. If unsure, leave',
E ? --------
E + ' --code, --report-code TEXT The code of the report. If unsure, leave',
E ? ++++++++
E ' default',
E ' --network-root-folder PATH Root folder from which to consider paths '
E 'on',
E ' the network section [default: (Current',
E ' working directory)]',
E ' -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder '
E 'PATH',
E ' Folder where to search for coverage files',
E ' [default: (Current Working Directory)]',
E ' --exclude, --coverage-files-search-exclude-folder, '
E '--files-search-exclude-folder PATH',
E ' Folders to exclude from search',
E ' -f, --file, --coverage-files-search-direct-file, '
E '--files-search-direct-file PATH',
E ' Explicit files to upload. These will be '
E 'added',
E ' to the coverage files found for upload. If '
E 'you',
E ' wish to only upload the specified files,',
E ' please consider using --disable-search to',
E ' disable uploading other files.',
E ' --disable-search Disable search for coverage files. This is',
E ' helpful when specifying what files you '
E 'want to',
E ' upload with the --file option.',
E ' --disable-file-fixes Disable file fixes to ignore common lines '
E 'from',
E ' coverage (e.g. blank lines or empty '
E 'brackets)',
E ' -b, --build, --build-code TEXT Specify the build number manually',
E ' --build-url TEXT The URL of the build where this is running',
E ' --job-code TEXT',
E ' -n, --name TEXT Custom defined name of the upload. Visible '
E 'in',
E ' Codecov UI',
E ' -B, --branch TEXT Branch to which this commit belongs to',
E ' -P, --pr, --pull-request-number TEXT',
E ' Specify the pull request number mannually.',
E ' Used to override pre-existing CI '
E 'environment',
E ' variables',
E ' -e, --env, --env-var TEXT Specify environment variables to be '
E 'included',
E ' with this build.',
E ' -F, --flag TEXT Flag the upload to group coverage metrics.',
E ' Multiple flags allowed.',
E ' --plugin TEXT',
E " -d, --dry-run Don't upload files to Codecov",
E ' --legacy, --use-legacy-uploader',
E ' Use the legacy upload endpoint',
E ' --handle-no-reports-found Raise no excpetions when no coverage '
E 'reports',
E ' found.',
E ' --report-type [coverage|test_results]',
E ' The type of the file to upload, coverage '
E 'by',
E ' default. Possible values are: testing,',
E ' coverage.',
E ' --network-filter TEXT Specify a filter on the files listed in '
E 'the',
E ' network section of the Codecov report. '
E 'This',
E ' will only add files whose path begin with '
E 'the',
E ' specified filter. Useful for '
E 'upload-specific',
E ' path fixing',
E ' --network-prefix TEXT Specify a prefix on files listed in the',
E ' network section of the Codecov report. '
E 'Useful',
E ' to help resolve path fixing',
E ' --parent-sha TEXT SHA (with 40 chars) of what should be the',
E ' parent of this commit',
E ' -h, --help Show this message and exit.',
E '',
E ]

tests/commands/test_invoke_upload_process.py:66: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 2 failed, 690 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
tests.commands.test_invoke_upload_process::test_upload_process_options

Test name:
pytest
|
mocker = <pytest_mock.plugin.MockerFixture object at 0x7fcd8175b0a0>

def test_upload_process_options(mocker):
runner = CliRunner()
fake_ci_provider = FakeProvider({FallbackFieldEnum.commit_sha: None})
mocker.patch("codecov_cli.main.get_ci_adapter", return_value=fake_ci_provider)
with runner.isolated_filesystem():
runner = CliRunner()
result = runner.invoke(cli, ["upload-process", "-h"], obj={})
assert result.exit_code == 0
print(result.output)

> assert result.output.split("\n")[1:] == [
"Usage: cli upload-process [OPTIONS]",
"",
"Options:",
" -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]",
" -Z, --fail-on-error Exit with non-zero code in case of error",
" --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]",
" -t, --token TEXT Codecov upload token",
" -r, --slug TEXT owner/repo slug used instead of the private",
" repo token in Self-hosted",
" --report-code TEXT The code of the report. If unsure, leave",
" default",
" --network-root-folder PATH Root folder from which to consider paths on",
" the network section [default: (Current",
" working directory)]",
" -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH",
" Folder where to search for coverage files",
" [default: (Current Working Directory)]",
" --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH",
" Folders to exclude from search",
" -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH",
" Explicit files to upload. These will be added",
" to the coverage files found for upload. If you",
" wish to only upload the specified files,",
" please consider using --disable-search to",
" disable uploading other files.",
" --disable-search Disable search for coverage files. This is",
" helpful when specifying what files you want to",
" upload with the --file option.",
" --disable-file-fixes Disable file fixes to ignore common lines from",
" coverage (e.g. blank lines or empty brackets)",
" -b, --build, --build-code TEXT Specify the build number manually",
" --build-url TEXT The URL of the build where this is running",
" --job-code TEXT",
" -n, --name TEXT Custom defined name of the upload. Visible in",
" Codecov UI",
" -B, --branch TEXT Branch to which this commit belongs to",
" -P, --pr, --pull-request-number TEXT",
" Specify the pull request number mannually.",
" Used to override pre-existing CI environment",
" variables",
" -e, --env, --env-var TEXT Specify environment variables to be included",
" with this build.",
" -F, --flag TEXT Flag the upload to group coverage metrics.",
" Multiple flags allowed.",
" --plugin TEXT",
" -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",
" found.",
" --report-type [coverage|test_results]",
" The type of the file to upload, coverage by",
" default. Possible values are: testing,",
" coverage.",
" --network-filter TEXT Specify a filter on the files listed in the",
" network section of the Codecov report. This",
" will only add files whose path begin with the",
" specified filter. Useful for upload-specific",
" path fixing",
" --network-prefix TEXT Specify a prefix on files listed in the",
" network section of the Codecov report. Useful",
" to help resolve path fixing",
" --parent-sha TEXT SHA (with 40 chars) of what should be the",
" parent of this commit",
" -h, --help Show this message and exit.",
"",
]
E assert ['Usage: cli ...server]', ...] == ['Usage: cli ...server]', ...]
E At index 9 diff: ' --code, --report-code TEXT The code of the report. If unsure, leave' != ' --report-code TEXT The code of the report. If unsure, leave'
E Full diff:
E [
E 'Usage: cli upload-process [OPTIONS]',
E '',
E 'Options:',
E ' -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]',
E ' -Z, --fail-on-error Exit with non-zero code in case of error',
E ' --git-service '
E '[github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]',
E ' -t, --token TEXT Codecov upload token',
E ' -r, --slug TEXT owner/repo slug used instead of the '
E 'private',
E ' repo token in Self-hosted',
E - ' --report-code TEXT The code of the report. If unsure, leave',
E ? --------
E + ' --code, --report-code TEXT The code of the report. If unsure, leave',
E ? ++++++++
E ' default',
E ' --network-root-folder PATH Root folder from which to consider paths '
E 'on',
E ' the network section [default: (Current',
E ' working directory)]',
E ' -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder '
E 'PATH',
E ' Folder where to search for coverage files',
E ' [default: (Current Working Directory)]',
E ' --exclude, --coverage-files-search-exclude-folder, '
E '--files-search-exclude-folder PATH',
E ' Folders to exclude from search',
E ' -f, --file, --coverage-files-search-direct-file, '
E '--files-search-direct-file PATH',
E ' Explicit files to upload. These will be '
E 'added',
E ' to the coverage files found for upload. If '
E 'you',
E ' wish to only upload the specified files,',
E ' please consider using --disable-search to',
E ' disable uploading other files.',
E ' --disable-search Disable search for coverage files. This is',
E ' helpful when specifying what files you '
E 'want to',
E ' upload with the --file option.',
E ' --disable-file-fixes Disable file fixes to ignore common lines '
E 'from',
E ' coverage (e.g. blank lines or empty '
E 'brackets)',
E ' -b, --build, --build-code TEXT Specify the build number manually',
E ' --build-url TEXT The URL of the build where this is running',
E ' --job-code TEXT',
E ' -n, --name TEXT Custom defined name of the upload. Visible '
E 'in',
E ' Codecov UI',
E ' -B, --branch TEXT Branch to which this commit belongs to',
E ' -P, --pr, --pull-request-number TEXT',
E ' Specify the pull request number mannually.',
E ' Used to override pre-existing CI '
E 'environment',
E ' variables',
E ' -e, --env, --env-var TEXT Specify environment variables to be '
E 'included',
E ' with this build.',
E ' -F, --flag TEXT Flag the upload to group coverage metrics.',
E ' Multiple flags allowed.',
E ' --plugin TEXT',
E " -d, --dry-run Don't upload files to Codecov",
E ' --legacy, --use-legacy-uploader',
E ' Use the legacy upload endpoint',
E ' --handle-no-reports-found Raise no excpetions when no coverage '
E 'reports',
E ' found.',
E ' --report-type [coverage|test_results]',
E ' The type of the file to upload, coverage '
E 'by',
E ' default. Possible values are: testing,',
E ' coverage.',
E ' --network-filter TEXT Specify a filter on the files listed in '
E 'the',
E ' network section of the Codecov report. '
E 'This',
E ' will only add files whose path begin with '
E 'the',
E ' specified filter. Useful for '
E 'upload-specific',
E ' path fixing',
E ' --network-prefix TEXT Specify a prefix on files listed in the',
E ' network section of the Codecov report. '
E 'Useful',
E ' to help resolve path fixing',
E ' --parent-sha TEXT SHA (with 40 chars) of what should be the',
E ' parent of this commit',
E ' -h, --help Show this message and exit.',
E '',
E ]

tests/commands/test_invoke_upload_process.py:66: AssertionError
| |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 2 failed, 690 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
tests.commands.test_invoke_upload_process::test_upload_process_options

Test name:
pytest
|
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f5a129635d0>

def test_upload_process_options(mocker):
runner = CliRunner()
fake_ci_provider = FakeProvider({FallbackFieldEnum.commit_sha: None})
mocker.patch("codecov_cli.main.get_ci_adapter", return_value=fake_ci_provider)
with runner.isolated_filesystem():
runner = CliRunner()
result = runner.invoke(cli, ["upload-process", "-h"], obj={})
assert result.exit_code == 0
print(result.output)

> assert result.output.split("\n")[1:] == [
"Usage: cli upload-process [OPTIONS]",
"",
"Options:",
" -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]",
" -Z, --fail-on-error Exit with non-zero code in case of error",
" --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]",
" -t, --token TEXT Codecov upload token",
" -r, --slug TEXT owner/repo slug used instead of the private",
" repo token in Self-hosted",
" --report-code TEXT The code of the report. If unsure, leave",
" default",
" --network-root-folder PATH Root folder from which to consider paths on",
" the network section [default: (Current",
" working directory)]",
" -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH",
" Folder where to search for coverage files",
" [default: (Current Working Directory)]",
" --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH",
" Folders to exclude from search",
" -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH",
" Explicit files to upload. These will be added",
" to the coverage files found for upload. If you",
" wish to only upload the specified files,",
" please consider using --disable-search to",
" disable uploading other files.",
" --disable-search Disable search for coverage files. This is",
" helpful when specifying what files you want to",
" upload with the --file option.",
" --disable-file-fixes Disable file fixes to ignore common lines from",
" coverage (e.g. blank lines or empty brackets)",
" -b, --build, --build-code TEXT Specify the build number manually",
" --build-url TEXT The URL of the build where this is running",
" --job-code TEXT",
" -n, --name TEXT Custom defined name of the upload. Visible in",
" Codecov UI",
" -B, --branch TEXT Branch to which this commit belongs to",
" -P, --pr, --pull-request-number TEXT",
" Specify the pull request number mannually.",
" Used to override pre-existing CI environment",
" variables",
" -e, --env, --env-var TEXT Specify environment variables to be included",
" with this build.",
" -F, --flag TEXT Flag the upload to group coverage metrics.",
" Multiple flags allowed.",
" --plugin TEXT",
" -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",
" found.",
" --report-type [coverage|test_results]",
" The type of the file to upload, coverage by",
" default. Possible values are: testing,",
" coverage.",
" --network-filter TEXT Specify a filter on the files listed in the",
" network section of the Codecov report. This",
" will only add files whose path begin with the",
" specified filter. Useful for upload-specific",
" path fixing",
" --network-prefix TEXT Specify a prefix on files listed in the",
" network section of the Codecov report. Useful",
" to help resolve path fixing",
" --parent-sha TEXT SHA (with 40 chars) of what should be the",
" parent of this commit",
" -h, --help Show this message and exit.",
"",
]
E assert ['Usage: cli ...server]', ...] == ['Usage: cli ...server]', ...]
E At index 9 diff: ' --code, --report-code TEXT The code of the report. If unsure, leave' != ' --report-code TEXT The code of the report. If unsure, leave'
E Full diff:
E [
E 'Usage: cli upload-process [OPTIONS]',
E '',
E 'Options:',
E ' -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]',
E ' -Z, --fail-on-error Exit with non-zero code in case of error',
E ' --git-service '
E '[github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]',
E ' -t, --token TEXT Codecov upload token',
E ' -r, --slug TEXT owner/repo slug used instead of the '
E 'private',
E ' repo token in Self-hosted',
E - ' --report-code TEXT The code of the report. If unsure, leave',
E ? --------
E + ' --code, --report-code TEXT The code of the report. If unsure, leave',
E ? ++++++++
E ' default',
E ' --network-root-folder PATH Root folder from which to consider paths '
E 'on',
E ' the network section [default: (Current',
E ' working directory)]',
E ' -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder '
E 'PATH',
E ' Folder where to search for coverage files',
E ' [default: (Current Working Directory)]',
E ' --exclude, --coverage-files-search-exclude-folder, '
E '--files-search-exclude-folder PATH',
E ' Folders to exclude from search',
E ' -f, --file, --coverage-files-search-direct-file, '
E '--files-search-direct-file PATH',
E ' Explicit files to upload. These will be '
E 'added',
E ' to the coverage files found for upload. If '
E 'you',
E ' wish to only upload the specified files,',
E ' please consider using --disable-search to',
E ' disable uploading other files.',
E ' --disable-search Disable search for coverage files. This is',
E ' helpful when specifying what files you '
E 'want to',
E ' upload with the --file option.',
E ' --disable-file-fixes Disable file fixes to ignore common lines '
E 'from',
E ' coverage (e.g. blank lines or empty '
E 'brackets)',
E ' -b, --build, --build-code TEXT Specify the build number manually',
E ' --build-url TEXT The URL of the build where this is running',
E ' --job-code TEXT',
E ' -n, --name TEXT Custom defined name of the upload. Visible '
E 'in',
E ' Codecov UI',
E ' -B, --branch TEXT Branch to which this commit belongs to',
E ' -P, --pr, --pull-request-number TEXT',
E ' Specify the pull request number mannually.',
E ' Used to override pre-existing CI '
E 'environment',
E ' variables',
E ' -e, --env, --env-var TEXT Specify environment variables to be '
E 'included',
E ' with this build.',
E ' -F, --flag TEXT Flag the upload to group coverage metrics.',
E ' Multiple flags allowed.',
E ' --plugin TEXT',
E " -d, --dry-run Don't upload files to Codecov",
E ' --legacy, --use-legacy-uploader',
E ' Use the legacy upload endpoint',
E ' --handle-no-reports-found Raise no excpetions when no coverage '
E 'reports',
E ' found.',
E ' --report-type [coverage|test_results]',
E ' The type of the file to upload, coverage '
E 'by',
E ' default. Possible values are: testing,',
E ' coverage.',
E ' --network-filter TEXT Specify a filter on the files listed in '
E 'the',
E ' network section of the Codecov report. '
E 'This',
E ' will only add files whose path begin with '
E 'the',
E ' specified filter. Useful for '
E 'upload-specific',
E ' path fixing',
E ' --network-prefix TEXT Specify a prefix on files listed in the',
E ' network section of the Codecov report. '
E 'Useful',
E ' to help resolve path fixing',
E ' --parent-sha TEXT SHA (with 40 chars) of what should be the',
E ' parent of this commit',
E ' -h, --help Show this message and exit.',
E '',
E ]

tests/commands/test_invoke_upload_process.py:66: AssertionError
| |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 2 failed, 690 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
| |
Testsuite:
tests.commands.test_invoke_upload_process::test_upload_process_options

Test name:
pytest
|
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f08d9026140>

def test_upload_process_options(mocker):
runner = CliRunner()
fake_ci_provider = FakeProvider({FallbackFieldEnum.commit_sha: None})
mocker.patch("codecov_cli.main.get_ci_adapter", return_value=fake_ci_provider)
with runner.isolated_filesystem():
runner = CliRunner()
result = runner.invoke(cli, ["upload-process", "-h"], obj={})
assert result.exit_code == 0
print(result.output)

> assert result.output.split("\n")[1:] == [
"Usage: cli upload-process [OPTIONS]",
"",
"Options:",
" -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]",
" -Z, --fail-on-error Exit with non-zero code in case of error",
" --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]",
" -t, --token TEXT Codecov upload token",
" -r, --slug TEXT owner/repo slug used instead of the private",
" repo token in Self-hosted",
" --report-code TEXT The code of the report. If unsure, leave",
" default",
" --network-root-folder PATH Root folder from which to consider paths on",
" the network section [default: (Current",
" working directory)]",
" -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH",
" Folder where to search for coverage files",
" [default: (Current Working Directory)]",
" --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH",
" Folders to exclude from search",
" -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH",
" Explicit files to upload. These will be added",
" to the coverage files found for upload. If you",
" wish to only upload the specified files,",
" please consider using --disable-search to",
" disable uploading other files.",
" --disable-search Disable search for coverage files. This is",
" helpful when specifying what files you want to",
" upload with the --file option.",
" --disable-file-fixes Disable file fixes to ignore common lines from",
" coverage (e.g. blank lines or empty brackets)",
" -b, --build, --build-code TEXT Specify the build number manually",
" --build-url TEXT The URL of the build where this is running",
" --job-code TEXT",
" -n, --name TEXT Custom defined name of the upload. Visible in",
" Codecov UI",
" -B, --branch TEXT Branch to which this commit belongs to",
" -P, --pr, --pull-request-number TEXT",
" Specify the pull request number mannually.",
" Used to override pre-existing CI environment",
" variables",
" -e, --env, --env-var TEXT Specify environment variables to be included",
" with this build.",
" -F, --flag TEXT Flag the upload to group coverage metrics.",
" Multiple flags allowed.",
" --plugin TEXT",
" -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",
" found.",
" --report-type [coverage|test_results]",
" The type of the file to upload, coverage by",
" default. Possible values are: testing,",
" coverage.",
" --network-filter TEXT Specify a filter on the files listed in the",
" network section of the Codecov report. This",
" will only add files whose path begin with the",
" specified filter. Useful for upload-specific",
" path fixing",
" --network-prefix TEXT Specify a prefix on files listed in the",
" network section of the Codecov report. Useful",
" to help resolve path fixing",
" --parent-sha TEXT SHA (with 40 chars) of what should be the",
" parent of this commit",
" -h, --help Show this message and exit.",
"",
]
E assert ['Usage: cli ...server]', ...] == ['Usage: cli ...server]', ...]
E At index 9 diff: ' --code, --report-code TEXT The code of the report. If unsure, leave' != ' --report-code TEXT The code of the report. If unsure, leave'
E Full diff:
E [
E 'Usage: cli upload-process [OPTIONS]',
E '',
E 'Options:',
E ' -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]',
E ' -Z, --fail-on-error Exit with non-zero code in case of error',
E ' --git-service '
E '[github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]',
E ' -t, --token TEXT Codecov upload token',
E ' -r, --slug TEXT owner/repo slug used instead of the '
E 'private',
E ' repo token in Self-hosted',
E - ' --report-code TEXT The code of the report. If unsure, leave',
E ? --------
E + ' --code, --report-code TEXT The code of the report. If unsure, leave',
E ? ++++++++
E ' default',
E ' --network-root-folder PATH Root folder from which to consider paths '
E 'on',
E ' the network section [default: (Current',
E ' working directory)]',
E ' -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder '
E 'PATH',
E ' Folder where to search for coverage files',
E ' [default: (Current Working Directory)]',
E ' --exclude, --coverage-files-search-exclude-folder, '
E '--files-search-exclude-folder PATH',
E ' Folders to exclude from search',
E ' -f, --file, --coverage-files-search-direct-file, '
E '--files-search-direct-file PATH',
E ' Explicit files to upload. These will be '
E 'added',
E ' to the coverage files found for upload. If '
E 'you',
E ' wish to only upload the specified files,',
E ' please consider using --disable-search to',
E ' disable uploading other files.',
E ' --disable-search Disable search for coverage files. This is',
E ' helpful when specifying what files you '
E 'want to',
E ' upload with the --file option.',
E ' --disable-file-fixes Disable file fixes to ignore common lines '
E 'from',
E ' coverage (e.g. blank lines or empty '
E 'brackets)',
E ' -b, --build, --build-code TEXT Specify the build number manually',
E ' --build-url TEXT The URL of the build where this is running',
E ' --job-code TEXT',
E ' -n, --name TEXT Custom defined name of the upload. Visible '
E 'in',
E ' Codecov UI',
E ' -B, --branch TEXT Branch to which this commit belongs to',
E ' -P, --pr, --pull-request-number TEXT',
E ' Specify the pull request number mannually.',
E ' Used to override pre-existing CI '
E 'environment',
E ' variables',
E ' -e, --env, --env-var TEXT Specify environment variables to be '
E 'included',
E ' with this build.',
E ' -F, --flag TEXT Flag the upload to group coverage metrics.',
E ' Multiple flags allowed.',
E ' --plugin TEXT',
E " -d, --dry-run Don't upload files to Codecov",
E ' --legacy, --use-legacy-uploader',
E ' Use the legacy upload endpoint',
E ' --handle-no-reports-found Raise no excpetions when no coverage '
E 'reports',
E ' found.',
E ' --report-type [coverage|test_results]',
E ' The type of the file to upload, coverage '
E 'by',
E ' default. Possible values are: testing,',
E ' coverage.',
E ' --network-filter TEXT Specify a filter on the files listed in '
E 'the',
E ' network section of the Codecov report. '
E 'This',
E ' will only add files whose path begin with '
E 'the',
E ' specified filter. Useful for '
E 'upload-specific',
E ' path fixing',
E ' --network-prefix TEXT Specify a prefix on files listed in the',
E ' network section of the Codecov report. '
E 'Useful',
E ' to help resolve path fixing',
E ' --parent-sha TEXT SHA (with 40 chars) of what should be the',
E ' parent of this commit',
E ' -h, --help Show this message and exit.',
E '',
E ]

tests/commands/test_invoke_upload_process.py:66: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 2 failed, 690 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
tests.commands.test_invoke_upload_process::test_upload_process_options

Test name:
pytest
|
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f29c6c86690>

def test_upload_process_options(mocker):
runner = CliRunner()
fake_ci_provider = FakeProvider({FallbackFieldEnum.commit_sha: None})
mocker.patch("codecov_cli.main.get_ci_adapter", return_value=fake_ci_provider)
with runner.isolated_filesystem():
runner = CliRunner()
result = runner.invoke(cli, ["upload-process", "-h"], obj={})
assert result.exit_code == 0
print(result.output)

> assert result.output.split("\n")[1:] == [
"Usage: cli upload-process [OPTIONS]",
"",
"Options:",
" -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]",
" -Z, --fail-on-error Exit with non-zero code in case of error",
" --git-service [github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]",
" -t, --token TEXT Codecov upload token",
" -r, --slug TEXT owner/repo slug used instead of the private",
" repo token in Self-hosted",
" --report-code TEXT The code of the report. If unsure, leave",
" default",
" --network-root-folder PATH Root folder from which to consider paths on",
" the network section [default: (Current",
" working directory)]",
" -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder PATH",
" Folder where to search for coverage files",
" [default: (Current Working Directory)]",
" --exclude, --coverage-files-search-exclude-folder, --files-search-exclude-folder PATH",
" Folders to exclude from search",
" -f, --file, --coverage-files-search-direct-file, --files-search-direct-file PATH",
" Explicit files to upload. These will be added",
" to the coverage files found for upload. If you",
" wish to only upload the specified files,",
" please consider using --disable-search to",
" disable uploading other files.",
" --disable-search Disable search for coverage files. This is",
" helpful when specifying what files you want to",
" upload with the --file option.",
" --disable-file-fixes Disable file fixes to ignore common lines from",
" coverage (e.g. blank lines or empty brackets)",
" -b, --build, --build-code TEXT Specify the build number manually",
" --build-url TEXT The URL of the build where this is running",
" --job-code TEXT",
" -n, --name TEXT Custom defined name of the upload. Visible in",
" Codecov UI",
" -B, --branch TEXT Branch to which this commit belongs to",
" -P, --pr, --pull-request-number TEXT",
" Specify the pull request number mannually.",
" Used to override pre-existing CI environment",
" variables",
" -e, --env, --env-var TEXT Specify environment variables to be included",
" with this build.",
" -F, --flag TEXT Flag the upload to group coverage metrics.",
" Multiple flags allowed.",
" --plugin TEXT",
" -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",
" found.",
" --report-type [coverage|test_results]",
" The type of the file to upload, coverage by",
" default. Possible values are: testing,",
" coverage.",
" --network-filter TEXT Specify a filter on the files listed in the",
" network section of the Codecov report. This",
" will only add files whose path begin with the",
" specified filter. Useful for upload-specific",
" path fixing",
" --network-prefix TEXT Specify a prefix on files listed in the",
" network section of the Codecov report. Useful",
" to help resolve path fixing",
" --parent-sha TEXT SHA (with 40 chars) of what should be the",
" parent of this commit",
" -h, --help Show this message and exit.",
"",
]
E assert ['Usage: cli ...server]', ...] == ['Usage: cli ...server]', ...]
E At index 9 diff: ' --code, --report-code TEXT The code of the report. If unsure, leave' != ' --report-code TEXT The code of the report. If unsure, leave'
E Full diff:
E [
E 'Usage: cli upload-process [OPTIONS]',
E '',
E 'Options:',
E ' -C, --sha, --commit-sha TEXT Commit SHA (with 40 chars) [required]',
E ' -Z, --fail-on-error Exit with non-zero code in case of error',
E ' --git-service '
E '[github|gitlab|bitbucket|github_enterprise|gitlab_enterprise|bitbucket_server]',
E ' -t, --token TEXT Codecov upload token',
E ' -r, --slug TEXT owner/repo slug used instead of the '
E 'private',
E ' repo token in Self-hosted',
E - ' --report-code TEXT The code of the report. If unsure, leave',
E ? --------
E + ' --code, --report-code TEXT The code of the report. If unsure, leave',
E ? ++++++++
E ' default',
E ' --network-root-folder PATH Root folder from which to consider paths '
E 'on',
E ' the network section [default: (Current',
E ' working directory)]',
E ' -s, --dir, --coverage-files-search-root-folder, --files-search-root-folder '
E 'PATH',
E ' Folder where to search for coverage files',
E ' [default: (Current Working Directory)]',
E ' --exclude, --coverage-files-search-exclude-folder, '
E '--files-search-exclude-folder PATH',
E ' Folders to exclude from search',
E ' -f, --file, --coverage-files-search-direct-file, '
E '--files-search-direct-file PATH',
E ' Explicit files to upload. These will be '
E 'added',
E ' to the coverage files found for upload. If '
E 'you',
E ' wish to only upload the specified files,',
E ' please consider using --disable-search to',
E ' disable uploading other files.',
E ' --disable-search Disable search for coverage files. This is',
E ' helpful when specifying what files you '
E 'want to',
E ' upload with the --file option.',
E ' --disable-file-fixes Disable file fixes to ignore common lines '
E 'from',
E ' coverage (e.g. blank lines or empty '
E 'brackets)',
E ' -b, --build, --build-code TEXT Specify the build number manually',
E ' --build-url TEXT The URL of the build where this is running',
E ' --job-code TEXT',
E ' -n, --name TEXT Custom defined name of the upload. Visible '
E 'in',
E ' Codecov UI',
E ' -B, --branch TEXT Branch to which this commit belongs to',
E ' -P, --pr, --pull-request-number TEXT',
E ' Specify the pull request number mannually.',
E ' Used to override pre-existing CI '
E 'environment',
E ' variables',
E ' -e, --env, --env-var TEXT Specify environment variables to be '
E 'included',
E ' with this build.',
E ' -F, --flag TEXT Flag the upload to group coverage metrics.',
E ' Multiple flags allowed.',
E ' --plugin TEXT',
E " -d, --dry-run Don't upload files to Codecov",
E ' --legacy, --use-legacy-uploader',
E ' Use the legacy upload endpoint',
E ' --handle-no-reports-found Raise no excpetions when no coverage '
E 'reports',
E ' found.',
E ' --report-type [coverage|test_results]',
E ' The type of the file to upload, coverage '
E 'by',
E ' default. Possible values are: testing,',
E ' coverage.',
E ' --network-filter TEXT Specify a filter on the files listed in '
E 'the',
E ' network section of the Codecov report. '
E 'This',
E ' will only add files whose path begin with '
E 'the',
E ' specified filter. Useful for '
E 'upload-specific',
E ' path fixing',
E ' --network-prefix TEXT Specify a prefix on files listed in the',
E ' network section of the Codecov report. '
E 'Useful',
E ' to help resolve path fixing',
E ' --parent-sha TEXT SHA (with 40 chars) of what should be the',
E ' parent of this commit',
E ' -h, --help Show this message and exit.',
E '',
E ]

tests/commands/test_invoke_upload_process.py:66: AssertionError
| |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 1 failed, 691 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 1 failed, 691 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 1 failed, 691 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
codecov[bot] commented 2 months ago

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

:x: Failed Test Results:

Completed 3465 tests with 5 failed, 3460 passed and 0 skipped.

View the full list of failed tests ## pytest - **Class name:** api.temp.calculator.test_calculator
**Test name:** test_divide **Flags:** - python3.12

def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
- **Class name:** api.temp.calculator.test_calculator
**Test name:** test_divide **Flags:** - python3.8

def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
- **Class name:** api.temp.calculator.test_calculator
**Test name:** test_divide **Flags:** - python3.11

def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
- **Class name:** api.temp.calculator.test_calculator
**Test name:** test_divide **Flags:** - python3.10

def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
- **Class name:** api.temp.calculator.test_calculator
**Test name:** test_divide **Flags:** - python3.9

def
test_divide():
> assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 1 failed, 691 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 692 tests with 1 failed, 691 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|
github-actions[bot] commented 2 months ago

:x: Failed Test Results:

Completed 693 tests with 1 failed, 692 passed and 0 skipped.

View the full list of failed tests | **Test Description** | **Failure message** | | :-- | :-- | |
Testsuite:
api.temp.calculator.test_calculator::test_divide

Test name:
pytest
|
def
test_divide():
&gt; assert Calculator.divide(1, 2) == 0.5
E assert 1.0 == 0.5
E + where 1.0 = &lt;function Calculator.divide at 0x104c9eb90&gt;(1, 2)
E + where &lt;function Calculator.divide at 0x104c9eb90&gt; = Calculator.divide
.../temp/calculator/test_calculator.py:30: AssertionError
|