Skip to content
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

Add some invariant checks to pyspec unit tests #2444

Merged
merged 4 commits into from
Jun 7, 2021
Merged

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented May 25, 2021

Issue

Fixes #407.

How did I fix it

Inspired by @protolambda, this PR adds some known invariant checks to pyspec unit tests.

Note: alternatively, we could try to put these conditions on the spec docs. However, the presentation might be kinda messy if we add a new column to each preset/config variable.

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

Great! I added a few more and will continue to do so

@djrtwo djrtwo merged commit b97972c into dev Jun 7, 2021
@djrtwo djrtwo deleted the invariant-checks branch June 7, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add config validity conditions
2 participants