script/lib/tweetstream/conftest.py
changeset 207 621fa6caec0c
parent 13 79b6e132e3d7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/script/lib/tweetstream/conftest.py	Fri Jul 01 18:59:13 2011 +0200
@@ -0,0 +1,10 @@
+# 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")
\ No newline at end of file