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

Adapted tests to work for Mainnet fork #42

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Adapted tests to work for Mainnet fork #42

merged 3 commits into from
Apr 4, 2024

Conversation

sajanrajdev
Copy link
Collaborator

Adapted all tests to work for mainnet fork (previously eBTC tests were pointing at Sepolia addresses). Flattened mock contracts were added to the project and deployed within the fixtures, asset funding introduced from mainnet setup. Only a small logic adjustment introduced to the close_cdp function on the balance check (statndardized checks in terms of shares).

Run tests with:

brownie test

Results:
image

Copy link
Collaborator

@petrovska-petro petrovska-petro left a comment

Choose a reason for hiding this comment

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

tests are passing smoothly ✅

  • converts to shares units the assertion after closing a cdp
  • introduces mocks deployed in the suite to test primary and secondary oracles in gov suite
  • modifies force deposits w/ real coll creation via submit
Screenshot 2024-03-28 at 18 21 39

@sajanrajdev sajanrajdev merged commit 92413cf into main Apr 4, 2024
3 checks passed
@sajanrajdev sajanrajdev deleted the fix-tests branch April 4, 2024 03:25
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.

2 participants