def blockchain_fixture_mark_fn(fixture_path, fixture_name, fixture_fork): fixture_id = (fixture_path, fixture_name) if 'bcExploitTest/' in fixture_path: return pytest.mark.skip("Exploit tests are slow") elif fixture_path.startswith('bcForkStressTest/ForkStressTest.json'): return pytest.mark.skip("Fork stress tests are slow.") elif fixture_path == 'bcWalletTest/walletReorganizeOwners.json': return pytest.mark.skip("Wallet owner reorganization tests are slow") elif fixture_id in INCORRECT_UPSTREAM_TESTS: return pytest.mark.xfail(reason="Listed in INCORRECT_UPSTREAM_TESTS.") elif 'stTransactionTest/zeroSigTransa' in fixture_path: return pytest.mark.skip("EIP-86 not supported.") elif "HighNonce" in fixture_name: # TODO: Turn these tests on and implement the relevant changes to pass them # https://github.com/ethereum/EIPs/pull/4784 return pytest.mark.skip( "EIP-2681 update not implemented. HighNonce tests turned off for now." ) elif "Merge" in fixture_name: # TODO: Implement changes for the Merge and turn these tests on return pytest.mark.skip("The Merge has not yet been implemented.") elif fixture_id in SLOWEST_TESTS: if should_run_slow_tests(): return else: return pytest.mark.skip("Skipping slow test") elif 'stQuadraticComplexityTest' in fixture_path: return pytest.mark.skip("Skipping slow test")
def blockchain_fixture_mark_fn(fixture_path, fixture_name, fixture_fork): for slow_test in SLOW_TESTS: if slow_test in fixture_path or slow_test in fixture_name: if not should_run_slow_tests(): return pytest.mark.skip("skipping slow test on a quick run") break if (fixture_path, fixture_name) in INCORRECT_UPSTREAM_TESTS: return pytest.mark.xfail(reason="Listed in INCORRECT_UPSTREAM_TESTS.")
def mark_statetest_fixtures(fixture_path, fixture_key, fixture_fork, fixture_index): fixture_id = (fixture_path, fixture_key, fixture_fork, fixture_index) if fixture_path.startswith('stTransactionTest/zeroSigTransa'): return pytest.mark.skip("EIP-86 not supported.") elif fixture_id in SLOWEST_TESTS: if should_run_slow_tests(): return else: return pytest.mark.skip("Skipping slow test") elif fixture_path.startswith('stQuadraticComplexityTest'): return pytest.mark.skip("Skipping slow test")
def blockchain_fixture_mark_fn(fixture_path, fixture_name, fixture_fork): fixture_id = (fixture_path, fixture_name) if fixture_path.startswith('bcExploitTest'): return pytest.mark.skip("Exploit tests are slow") elif fixture_path == 'bcWalletTest/walletReorganizeOwners.json': return pytest.mark.skip("Wallet owner reorganization tests are slow") elif fixture_id in INCORRECT_UPSTREAM_TESTS: return pytest.mark.xfail(reason="Listed in INCORRECT_UPSTREAM_TESTS.") elif 'stTransactionTest/zeroSigTransa' in fixture_path: return pytest.mark.skip("EIP-86 not supported.") elif fixture_id in SLOWEST_TESTS: if should_run_slow_tests(): return else: return pytest.mark.skip("Skipping slow test") elif 'stQuadraticComplexityTest' in fixture_path: return pytest.mark.skip("Skipping slow test")
def blockchain_fixture_mark_fn(fixture_path, fixture_name): for slow_test in SLOW_TESTS: if slow_test in fixture_path or slow_test in fixture_name: if not should_run_slow_tests(): return pytest.mark.skip("skipping slow test on a quick run") break