Skip to content

Commit

Permalink
Refactor test_conftest.py in market module
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetto90 committed Jan 18, 2024
1 parent fe115a5 commit 738e47e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions tests/deployers/market/test_conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
def test_deployer_fixture(deployer, factory, ov):
assert deployer.factory() == factory
assert deployer.ov() == ov

tok, feed, fact = deployer.parameters()
assert tok == ov
assert feed == "0x0000000000000000000000000000000000000000"
Expand Down
2 changes: 1 addition & 1 deletion tests/factories/market/test_conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_factory_fixture(factory, fee_recipient, feed_factory, feed_three, ov,

# check deployer contract deployed on factory deploy
assert factory.deployer() != "0x0000000000000000000000000000000000000000"
assert deployer.factory() == factory
assert deployer.parameters()[2] == factory

# check factory has been given admin role on ov token
assert ov.hasRole(ov.DEFAULT_ADMIN_ROLE(), factory) is True
Expand Down

0 comments on commit 738e47e

Please sign in to comment.