Пример #1
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params(
        "StateTests",
        metafunc,
        lambda filename, _, __: (
            "stQuadraticComplexityTest.json" in filename
            or "stMemoryStressTest.json" in filename
            or "stPreCompiledContractsTransaction.json" in filename
        ),
    )
Пример #2
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('ABITests', metafunc)
Пример #3
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('BasicTests', metafunc, exclude_func=not_a_difficulty_test)
Пример #4
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('KeyStoreTests', metafunc)
Пример #5
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('VMTests', metafunc)
Пример #6
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params(
        'BlockchainTests', metafunc, lambda filename, testname, _:
        (filename.split('/')[-1], testname) in excludes)
Пример #7
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('KeyStoreTests', metafunc)
Пример #8
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('TransactionTests', metafunc)
Пример #9
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('TransactionTests', metafunc)
Пример #10
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params(
        'StateTests', metafunc, lambda filename, _, __:
        ('stQuadraticComplexityTest.json' in filename or
         'stMemoryStressTest.json' in filename or
         'stPreCompiledContractsTransaction.json' in filename))
Пример #11
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params('BasicTests',
                                   metafunc,
                                   exclude_func=not_a_difficulty_test)
Пример #12
0
def pytest_generate_tests(metafunc):
    testutils.generate_test_params(
        'BlockchainTests',
        metafunc,
        lambda filename, testname, _: (filename.split('/')[-1], testname) in excludes
    )