Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer committed Jun 26, 2024
1 parent cc212d1 commit 3ab2980
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/test_govnft_sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ def test_initial_state(sugar_contract):


def test_byId(sugar_contract, GovNftStruct):
govnft = GovNftStruct(*sugar_contract.byId(1, os.getenv('GOVNFT_COLLECTION_ADDRESS')))
govnft = GovNftStruct(
*sugar_contract.byId(1, os.getenv('GOVNFT_COLLECTION_ADDRESS'))
)

assert govnft is not None
assert len() == 15
assert govnft.minter != ADDRESS_ZERO
assert govnft.address != ADDRESS_ZERO


def test_collections(sugar_contract, CollectionStruct):
collections = list(map(
lambda _p: CollectionStruct(*_p),
Expand All @@ -52,7 +55,9 @@ def test_collections(sugar_contract, CollectionStruct):


def test_owned(sugar_contract, GovNftStruct):
govnft = GovNftStruct(*sugar_contract.byId(1, os.getenv('GOVNFT_COLLECTION_ADDRESS')))
govnft = GovNftStruct(
*sugar_contract.byId(1, os.getenv('GOVNFT_COLLECTION_ADDRESS'))
)

assert govnft is not None

Expand All @@ -70,7 +75,9 @@ def test_owned(sugar_contract, GovNftStruct):


def test_minted(sugar_contract, GovNftStruct):
govnft = GovNftStruct(*sugar_contract.byId(1, os.getenv('GOVNFT_COLLECTION_ADDRESS')))
govnft = GovNftStruct(
*sugar_contract.byId(1, os.getenv('GOVNFT_COLLECTION_ADDRESS'))
)

assert govnft is not None

Expand Down

0 comments on commit 3ab2980

Please sign in to comment.