Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[skip changelog] Update JSON output key name in integration test helper #1340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
per1234 merged 1 commit into arduino:master from per1234:fix-test
Jul 1, 2021
Merged

[skip changelog] Update JSON output key name in integration test helper #1340

per1234 merged 1 commit into arduino:master from per1234:fix-test
Jul 1, 2021

Conversation

Copy link
Contributor

@per1234 per1234 commented Jul 1, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

bug fix

  • What is the current behavior?

The key names used in Arduino CLI's JSON output were made consistent and standardized (#1223). One of the helper functions for
the integration tests was not updated accordingly. This was missed because it is only used when running the tests locally
due to requiring a board to be connected to the computer. That caused the test to have a spurious failure:

ERROR test\test_upload.py::test_upload - AttributeError: 'NoneType' object has no attribute 'split'
  • What is the new behavior?

The key name is updated to match the new JSON output format and the test is once more returning valid results.

No break.

The key names used in Arduino CLI's JSON output were made consistent and standardized. One of the helper functions for
the integration tests was not updated accordingly. This was missed because it is only used when running the tests locally
due to requiring a board to be connected to the computer.
Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! It shows we don't run those tests enough. 😅

per1234 reacted with laugh emoji
@per1234 per1234 merged commit 2979202 into arduino:master Jul 1, 2021
@per1234 per1234 deleted the fix-test branch July 1, 2021 08:09
@rsora rsora added type: imperfection Perceived defect in any part of project topic: testing labels Sep 22, 2021
@per1234 per1234 added topic: infrastructure Related to project infrastructure and removed topic: testing labels Sep 24, 2021
@per1234 per1234 self-assigned this Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@umbynos umbynos Awaiting requested review from umbynos

1 more reviewer

@silvanocerza silvanocerza silvanocerza approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /