2018-04-12 03:17:39 +00:00
|
|
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
|
|
from umbral.config import set_default_curve
|
2018-06-04 18:00:08 +00:00
|
|
|
|
2018-05-09 04:45:00 +00:00
|
|
|
set_default_curve(ec.SECP256K1())
|
|
|
|
|
2018-06-04 18:00:08 +00:00
|
|
|
|
|
|
|
# NOTICE: Depends on fixture modules; do not delete
|
2018-04-15 06:34:12 +00:00
|
|
|
from .eth_fixtures import *
|
|
|
|
from .fixtures import *
|
|
|
|
|
2018-05-07 02:11:20 +00:00
|
|
|
import pytest
|
2018-06-04 18:00:08 +00:00
|
|
|
|
|
|
|
|
2018-05-07 02:11:20 +00:00
|
|
|
def pytest_addoption(parser):
|
|
|
|
parser.addoption("--runslow", action="store_true",
|
|
|
|
default=False, help="run slow tests")
|
|
|
|
|
2018-06-04 18:00:08 +00:00
|
|
|
|
2018-05-07 02:11:20 +00:00
|
|
|
def pytest_collection_modifyitems(config, items):
|
|
|
|
if config.getoption("--runslow"):
|
|
|
|
# --runslow given in cli: do not skip slow tests
|
|
|
|
return
|
|
|
|
skip_slow = pytest.mark.skip(reason="need --runslow option to run")
|
|
|
|
for item in items:
|
|
|
|
if "slow" in item.keywords:
|
2018-06-04 18:00:08 +00:00
|
|
|
item.add_marker(skip_slow)
|