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

INDY-2338: support generic way for request payload version #1473

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

ashcherbakov
Copy link
Contributor

Signed-off-by: ashcherbakov alexander.sherbakov@dsr-corporation.com

Signed-off-by: ashcherbakov <alexander.sherbakov@dsr-corporation.com>

custom_version = '3000'
if request.param == 'custom_version':
op['ver'] = custom_version
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
op['ver'] = custom_version
op[OP_VER] = custom_version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it makes sense to use real values (not constant variables) in tests when checking expected value to protect against accidental renaming.
In this particular I agree, that this is rather not the output to be checked, but the input, so it's better to use constants for input.

@skhoroshavin skhoroshavin merged commit 429b25d into hyperledger:master Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants