script/lib/tweetstream/conftest.py
changeset 883 8ae3d91ea4ae
parent 882 b46cfa1d188b
child 884 07f1c6854df9
equal deleted inserted replaced
882:b46cfa1d188b 883:8ae3d91ea4ae
     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")