-
Notifications
You must be signed in to change notification settings - Fork 29
update compatible tests #3255
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
base: master
Are you sure you want to change the base?
update compatible tests #3255
Conversation
|
|
||
| print("\n >>>>> ERROR START") | ||
| print(err) | ||
| print(" >>>>> ERROR END\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prints are not needed.
|
|
||
| assert "TextEnvelope type error" in err, err | ||
| assert "Expected: CertificateConway" in err, err | ||
| assert "Actual: UpdateProposalShelley" in err, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For single error string, assert single substring or regular expression search.
| "babbage": ("--max-collateral-inputs", 4, "maxCollateralInputs"), | ||
| } | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in the class where it is used.
|
|
||
| @allure.link(helpers.get_vcs_link()) | ||
| @submit_utils.PARAM_SUBMIT_METHOD | ||
| @pytest.mark.parametrize("era", ["shelley", "mary", "alonzo", "babbage"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use tuple (immutable data) instead of list here.
| out_file = f"{temp_template}_update.proposal" | ||
| print("\nERROR MESSAGE START") | ||
| print(err_str) | ||
| print(" ERROR MESSAGE END\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prints are not needed.
| err_str = str(excinfo.value) | ||
| assert "Invalid argument `create-update-proposal'" in err_str, err_str | ||
| assert "TextEnvelope type error" in err_str | ||
| assert "UpdateProposalShelley" in err_str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For single error string, assert single substring or regular expression search.
| @pytest.mark.parametrize( | ||
| "mir_cert", | ||
| ("to_treasury", "to_rewards", "treasury_to_addr", "reserves_to_addr"), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parametrize each test, not test class.
| Expect failure. | ||
| def test_mir_certificates(self, cluster, payment_addr, era, mir_cert): | ||
| """ | ||
| Try each MIR certificate across all compatible eras. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use google style (numpy style) docstrings.
| reqc.cip070.success() | ||
|
|
||
|
|
||
| reqc.cip070.success() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be here.
update compatible tests