script/lib/tweetstream/conftest.py
changeset 248 ffb0a6d08000
parent 13 79b6e132e3d7
equal deleted inserted replaced
247:e6b328970ee8 248:ffb0a6d08000
       
     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")