script/lib/tweetstream/conftest.py
author Raphael Velt <raph.velt@gmail.com>
Wed, 18 Jan 2012 17:39:21 +0100
changeset 478 fa85da0a93fe
parent 13 79b6e132e3d7
permissions -rw-r--r--
Merge with d5064ff6266e5f6ca2ef3cebd3b8869027b2a36c

# content of conftest.py

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.getvalue("runslow"):
        pytest.skip("need --runslow option to run")