Python Test - Pytest library

> Procedural Languages > Python > Python - Test

1 - About

pytest is a test runner library

See also Python - Test

3 - File format

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

4 - Example

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

5 - Idea Configuration

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

Advertising

6 - Documentation / Reference

lang/python/test/pytest.txt · Last modified: 2019/09/08 16:22 by gerardnico