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

Feat: integration tests for contracts #459

Merged
merged 19 commits into from
Jun 5, 2024

Conversation

F4ever
Copy link
Member

@F4ever F4ever commented May 27, 2024

No description provided.

@F4ever F4ever changed the base branch from feat/oracle-v4 to feat/abstract-contract-interaction May 27, 2024 12:11
@F4ever F4ever requested a review from a team as a code owner May 27, 2024 16:34
run: poetry run pytest -m "not integration and not e2e" --cov=src tests
run: poetry run pytest --cov=src tests
env:
LIDO_LOCATOR_ADDRESS: 0xC1d0b3DE6792Bf6b4b37EccdcC24e45978Cfd2Eb
Copy link
Contributor

Choose a reason for hiding this comment

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

why you need real locator address for unit tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Now there are some integration tests, but placed this constant inside, because tests are bind to mainnet currently

@@ -104,8 +104,8 @@ class SharesRequestedToBurn:

@dataclass
class WithdrawalRequestStatus:
amountOfStETH: int
amountOfShares: int
amount_of_st_eth: int
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
amount_of_st_eth: int
amount_of_steth: int

Copy link
Member Author

Choose a reason for hiding this comment

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

named_tuple_to_dataclass automatically renames amountOfStETH to amount_of_st_eth. Don't think we need any exceptions for this case

@F4ever F4ever changed the base branch from feat/abstract-contract-interaction to feat/oracle-v4 May 29, 2024 20:33
@F4ever F4ever mentioned this pull request Jun 5, 2024
@F4ever F4ever merged commit ecbe856 into feat/oracle-v4 Jun 5, 2024
5 of 6 checks passed
@F4ever F4ever mentioned this pull request Jul 26, 2024
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.

3 participants