Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
# Install pytest pip install pytest # Write tests in test_*.py files def test_addition(): assert 1 + 1 == 2 # Run pytest # all tests pytest -v # verbose pytest test_math.py # single file pytest -k "addition" # by keyword
Result
Open