Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

AttributeError: 'Function' object has no attribute '_testcase' (pytest)

I am writing a test-data driven framework using pytest, and I see the following error at the end of test execution. The assertions pass just fine, but after the test execution, I see the following error:

=================================================================== FAILURES ===================================================================
<test-case attributes and summary>]

   lambda: ihook(item=item, **kwds),
    when=when,
)

/app/shared/virtualenvs/venmo_platform27/local/lib/python2.7/site-packages/flaky/flaky_pytest_plugin.py:273:

@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_call(item):
    outcome = yield
    try:
       tc = item._testcase
       AttributeError: 'Function' object has no attribute '_testcase'

/app/shared/virtualenvs/venmo_platform27/local/lib/python2.7/site-packages/detect_leaky_state/pytest_plugin.py:21: AttributeError

Comments