Python Test - Pytest library

Python Test Idea


pytest is a test runner library

See also Python - Test

File format

filename like test_*.py will be auto-discoverable by pytest.


from test_helper import Test
numPoints = 6724
Test.assertEquals(numPoints, 6724, 'incorrect value for numPoints')

Idea Configuration

  • Set Pytest as the runner, then run the script as normal

Idea Settings Python Test Runner

Documentation / Reference

Discover More
Python Test Idea
Python - Test

in Python From the standard library: Example: doctest describe test that look like interactive Python sessions with: the command the expectations...

Share this page:
Follow us:
Task Runner