import pytest


def pytest_addoption(parser):
    parser.addoption("--runslow", action="store_true",
        help="run slow tests")

def pytest_runtest_setup(item):
    if 'slow' in item.keywords and not item.config.getoption("--runslow"):
        pytest.skip("need --runslow option to run")

Add pytest config file for slow tests.
Add pytest config file for slow tests.

Added a pytest config file in the tests folder, so that I could define a
--runslow option to some tests. This way, I don't have to run them all
the time if not necessary.
