I\'m trying to use TDD (test-driven development) with pytest. pytest will not print to the console when I use print.
pytest
print
According to the pytest docs, pytest --capture=sys should work. If you want to capture standard out inside a test, refer to the capsys fixture.
pytest --capture=sys