8000 PlasmaPy/tests at master · pheuer/PlasmaPy · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Tests

Tip

To learn more about software testing in PlasmaPy, please check out the testing guide.

PlasmaPy's tests are written using the pytest framework, with Nox as the test runner.

Locating tests

The tests directory contains PlasmaPy's tests. The directory structure and organization of tests largely mirrors that of src/plasmapy, which contains PlasmaPy's source code. For example, the source code of plasmapy.formulary.speeds is located at src/plasmapy/formulary/speeds.py, while its tests are located at tests/formulary/test_speeds.py

Running tests

To run tests locally, first install Nox and its dependencies with:

python -m pip install nox uv

To run all but the slowest tests, enter the top-level directory of your clone of PlasmaPy and run:

nox

For more information, please see the section in the testing guide on running tests.

0