Skip to content

feat: Add unit testing to JSON schema#5593

Merged
lucashuy merged 8 commits intoaws:feat/json-schemafrom
Leo10Gama:schema-unit-testing
Jul 24, 2023
Merged

feat: Add unit testing to JSON schema#5593
lucashuy merged 8 commits intoaws:feat/json-schemafrom
Leo10Gama:schema-unit-testing

Conversation

@Leo10Gama
Copy link
Contributor

Why is this change necessary?

The generation logic of the JSON schema must be proven to be correct, which is why its methods should be unit tested.

How does it address the issue?

Unit tests have been added for all of the methods in schema.py, ensuring that they are correct and complete.

What side effects does this change have?

N/A

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Leo10Gama Leo10Gama requested a review from a team as a code owner July 21, 2023 16:32
@Leo10Gama Leo10Gama requested review from hnnasit and mndeveci July 21, 2023 16:32
@github-actions github-actions bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jul 21, 2023
Copy link
Contributor

@hnnasit hnnasit left a comment

Choose a reason for hiding this comment

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

Overall looks good to me.

@lucashuy
Copy link
Contributor

lucashuy commented Jul 24, 2023

Could we also add the schema folder to the Makefile testing related targets so that they also get run by make pr?

@lucashuy lucashuy merged commit 6d440eb into aws:feat/json-schema Jul 24, 2023
@Leo10Gama Leo10Gama deleted the schema-unit-testing branch July 24, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants