Skip to content

why not just test_fixtures, instead of all that copypaste methods? #61

@potehinre

Description

@potehinre
def test_fixtures:
     for contract in self.contracts.values():
         self.check_contract(contact["code"], contract["asert"])

https://github.com/GenesisKernel/genesis-tests/blob/6f57ca7ef9dc460cf469ac3643267cc076480d3f/contract_functions_tests.py#L57

if you want separate test methods, you could use metaclass, and generate those methods through it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions