added docstrign to inection collection test.

This commit is contained in:
aselus-hub 2015-12-10 15:19:08 -08:00
parent 2b2240e904
commit 1216a27b44
1 changed files with 6 additions and 0 deletions

View File

@ -1079,6 +1079,12 @@ def test_dont_collect_non_function_callable(testdir):
def test_class_injection_does_not_break_collection(testdir):
"""Tests whether injection during collection time will terminate testing.
In this case the error should not occur if the TestClass itself
is modified during collection time, and the original method list
is still used for collection.
"""
testdir.makeconftest("""
from test_inject import TestClass
def pytest_generate_tests(metafunc):