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

pytest: rosetta: add more tests checking how transactions look #5686

Merged
merged 4 commits into from
Dec 7, 2021

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Dec 6, 2021

Extend implicit account test to also investigate how the NEAR
transactions look when fetched through the Rosetta Data API.

Issue: #5173
Issue: #3186

@mina86 mina86 added A-testing Area: Unit testing / integration testing S-automerge A-CI Area: Continuous Integration labels Dec 6, 2021
@mina86 mina86 requested a review from mm-near as a code owner December 6, 2021 18:13
def test_delete_implicit_account(self) -> None:
def _get_account_balance(self,
account: key.Key,
require: bool = True) -> typing.Optional[int]:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

you can do at the top of the file:
from typing import Optional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is bigger discussion I suppose. Throughout all the code (in nearcore and nayduck) I’ve been using typing.xxx so this preserves that style. If we want to change this we should apply the style equally to all code in separate PR.

pytest/tests/sanity/rosetta.py Outdated Show resolved Hide resolved
@near-bulldozer near-bulldozer bot merged commit a047205 into near:master Dec 7, 2021
@mina86 mina86 deleted the ros-test branch December 8, 2021 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: Continuous Integration A-testing Area: Unit testing / integration testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants