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-2066] Adds more taa data to state #1203

Merged

Conversation

andkononykhin
Copy link
Contributor

No description provided.

Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
…-2066-taa-ts-in-state

Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
…-2066-taa-ts-in-state

Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
skhoroshavin
skhoroshavin previously approved these changes May 14, 2019
Copy link
Member

@skhoroshavin skhoroshavin left a comment

Choose a reason for hiding this comment

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

Overall changes look good for me, however I feel like readability of tests can be improved

plenum/server/config_req_handler.py Outdated Show resolved Hide resolved
plenum/server/config_req_handler.py Outdated Show resolved Hide resolved
plenum/server/config_req_handler.py Outdated Show resolved Hide resolved
plenum/test/txn_author_agreement/conftest.py Show resolved Hide resolved
plenum/test/txn_author_agreement/helper.py Outdated Show resolved Hide resolved
plenum/test/txn_author_agreement/conftest.py Outdated Show resolved Hide resolved
plenum/test/txn_author_agreement/conftest.py Outdated Show resolved Hide resolved
digest = taa_digests[data.version]

config_req_handler.update_txn_author_agreement(*data)
written.append(data.version)
Copy link
Member

Choose a reason for hiding this comment

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

Feels like this test contains too much logic compared to original one with just two examples.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Signed-off-by: Andrey Kononykhin <andkononykhin@gmail.com>
Copy link
Member

@skhoroshavin skhoroshavin left a comment

Choose a reason for hiding this comment

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

Thanks for update!

assert _digest is None
assert _data is None

for data in taa_input_data:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is of course a matter of taste, and not a subject for change, but I would prefer more simple and readable unit tests (closer to the initial version of the tests).

@ashcherbakov ashcherbakov merged commit 9c87d49 into hyperledger:master May 15, 2019
@andkononykhin andkononykhin deleted the INDY-2066-taa-ts-in-state branch May 15, 2019 08:59
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

3 participants