script/lib/tweetstream/conftest.py
changeset 207 621fa6caec0c
parent 13 79b6e132e3d7
equal deleted inserted replaced
206:6d642d650470 207:621fa6caec0c
       
     1 # content of conftest.py
       
     2 
       
     3 import pytest
       
     4 def pytest_addoption(parser):
       
     5     parser.addoption("--runslow", action="store_true",
       
     6         help="run slow tests")
       
     7 
       
     8 def pytest_runtest_setup(item):
       
     9     if 'slow' in item.keywords and not item.config.getvalue("runslow"):
       
    10         pytest.skip("need --runslow option to run")