Commits

Jason R. Coombs committed 657d7b7

Move pytest_addoption to root to cause it to be honored.

Comments (0)

Files changed (2)

+
+# This test must be in the root directory.
+def pytest_addoption(parser):
+	parser.addoption("--runslow", action="store_true",
+		help="run slow tests")

tests/conftest.py

 	config.has_internet = not throws_exception(open_google)
 	config.has_wordnik = 'wordnik' in dir(pmxbot.util)
 
-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")