Following the tutorial here: https://docs.replit.com/tutorials/python/test-driven-development
But using my own codebase.
In main.py
, using
import pytest
pytest.main()
runs the tests fine.
Then the tutorial says you can run
import pytest; pytest.main()
In the console. I commented the test runner lines out in main.py
, hit run button to refresh, and typed the command in the console.
Instead of running the tests, it seems to give me a >
prompt.
(screencap )
But the tests do not run. Tried the same in shell, same result.
How does one run the tests from the console or the shell?
Thanks.