Skip to content

Unwind oi tests#87

Open
0xparashar wants to merge 2 commits intomain-archivefrom
unwind-oi-tests
Open

Unwind oi tests#87
0xparashar wants to merge 2 commits intomain-archivefrom
unwind-oi-tests

Conversation

@0xparashar
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/markets/test_funding.py
Comment thread tests/markets/utils.py Outdated
# Use update() to update state to query values for checks vs expected
# after unwind.
# NOTE: update() tests in test_update.py
oi_long = Decimal(market.oiLong())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like these 2 lines are not required

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be fixed in other tests too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I need previous oi long & oi short to calculate new oi long and oi short, so was caching these values before calling update on market as on Line 100 you can see

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