DEV Community

Discussion on: Capturing print statements while debugging

Collapse
 
simchuck profile image
simchuck

Is the capsys variable name a keyword for pytest, or can the name be arbitrary?

Also, can this technique also be used within a parametrized test? Where would the capsys parameter be placed in the test function's parameter list?