def fixture(fixture_data): fixture_path, fixture_key, fixture_fork, post_state_index = fixture_data fixture = load_fixture( fixture_path, fixture_key, normalize_statetest_fixture(fork=fixture_fork, post_state_index=post_state_index), ) return fixture
def fixture(fixture_data): fixture_path, fixture_key = fixture_data fixture = load_fixture( fixture_path, fixture_key, normalize_vmtest_fixture, ) return fixture
def fixture(fixture_data): fixture_path, fixture_key, fixture_fork = fixture_data fixture = load_fixture( fixture_path, fixture_key, normalize_transactiontest_fixture(fork=fixture_fork), ) return fixture
def fixture(fixture_data): fixture_path, fixture_key = fixture_data fixture = load_fixture( fixture_path, fixture_key, normalize_blockchain_fixtures, ) if fixture['network'] == 'Constantinople': pytest.skip('Constantinople VM rules not yet supported') return fixture
def expand_fixtures_forks(all_fixtures): """ The transaction fixtures have different definitions for each fork and must be expanded one step further to have one fixture for each defined fork within the fixture. """ for fixture_path, fixture_key in all_fixtures: fixture = load_fixture(fixture_path, fixture_key) for fixture_fork, fork_states in fixture.items(): if fixture_fork not in FIXTURE_FORK_SKIPS: yield fixture_path, fixture_key, fixture_fork
def expand_fixtures_forks(all_fixtures): """ The statetest fixtures have different definitions for each fork and must be expanded one step further to have one fixture for each defined fork within the fixture. """ for fixture_path, fixture_key in all_fixtures: fixture = load_fixture(fixture_path, fixture_key) for fixture_fork, post_states in sorted(fixture['post'].items()): for post_state_index in range(len(post_states)): yield fixture_path, fixture_key, fixture_fork, post_state_index
def chain_fixture(fixture_data): fixture = load_fixture(*fixture_data) if fixture['network'] == 'Constantinople': pytest.skip('Constantinople VM rules not yet supported') return fixture