Report phases in pytest hooks
QuizMediumPython onlyAsked in: Accenture, Infosys, TCS, Wipro
In the pytest_runtest_makereport hook, which values can rep.when take, and which one is the test body?
- "setup", "call" and "teardown"; "call" is the test body
- "before", "test" and "after"
- Only "call"
- "collect" and "run"
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.