pytest-nbgrader
Versions |
|
Documentation and Support |
|
Open Source |
|
Coding Standards |
|
Development Status |
Pytest plugin for using with nbgrader and generating test cases.
Free software: MIT license
Documentation: https://pytest-nbgrader.readthedocs.io.
Features
Load student submissions from Jupyter notebooks via
SubmissionclassDefine test cases with expected inputs/outputs using
TestCaseandTestSubtaskdataclassesExecute student code against test cases with automatic result comparison
Serialize and deserialize test cases via YAML
Prerequisite checks: function signature validation, write-access verification
Assertion helpers for numeric comparisons (numpy-based tolerances)
Automatic pytest test class generation via
TestClassharnessRun pytest from within notebooks using the
runnermodulePlugs into pytest as a standard plugin — no configuration needed beyond install
Credits
This package was created with Cookiecutter and the Ouranosinc/cookiecutter-pypackage project template.