Testing

Tests

Multinet uses pytest for testing. To run these tests, run the following command:

$ pipenv run test

Coverage

To run coverage (also through pytest), run the following command:

$ pipenv run coverage

Linting

Multinet uses flake8 for linting. To run this manually, type the following command:

$ pipenv run lint

Formatting

Multinet uses black for code formatting. To run this formatting, run the following command:

$ pipenv run format

Keep in mind that Black will edit your source files in place, so it’s best to ensure you have no pending, unsaved changes in your text editor before running this command.