Pytest plugin for using with nbgrader and generating test cases.
Project description
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 Submission class
Define test cases with expected inputs/outputs using TestCase and TestSubtask dataclasses
Execute 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 TestClass harness
Run pytest from within notebooks using the runner module
Plugs 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_nbgrader-0.3.0.tar.gz.
File metadata
- Download URL: pytest_nbgrader-0.3.0.tar.gz
- Upload date:
- Size: 90.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5541bf5203775325123c083d757c0827d015f27b811379e687d6edadf4a076ed
|
|
| MD5 |
0a30342756f0262424a6113998c4e4bd
|
|
| BLAKE2b-256 |
0ead199d44c4af79b853e0795c6084743ad3c605cf308ed00ebfafaaccc45749
|
Provenance
The following attestation bundles were made for pytest_nbgrader-0.3.0.tar.gz:
Publisher:
publish-pypi.yml on PhilippRisius/pytest_nbgrader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_nbgrader-0.3.0.tar.gz -
Subject digest:
5541bf5203775325123c083d757c0827d015f27b811379e687d6edadf4a076ed - Sigstore transparency entry: 1203744421
- Sigstore integration time:
-
Permalink:
PhilippRisius/pytest_nbgrader@c2bda5fdc425942b78f87ac371d1f72e9c07d400 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/PhilippRisius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c2bda5fdc425942b78f87ac371d1f72e9c07d400 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pytest_nbgrader-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pytest_nbgrader-0.3.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48cf42a2832c337f849060d526ff0a67812714f2f1f12090febc52a98839951f
|
|
| MD5 |
ebc452d1900a3be53ff1ea646a7cb36f
|
|
| BLAKE2b-256 |
b8a19ec15690b6adeb68f8c2f690ee8113b718eedf299cd2015bd5030f28ec16
|
Provenance
The following attestation bundles were made for pytest_nbgrader-0.3.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on PhilippRisius/pytest_nbgrader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_nbgrader-0.3.0-py3-none-any.whl -
Subject digest:
48cf42a2832c337f849060d526ff0a67812714f2f1f12090febc52a98839951f - Sigstore transparency entry: 1203744436
- Sigstore integration time:
-
Permalink:
PhilippRisius/pytest_nbgrader@c2bda5fdc425942b78f87ac371d1f72e9c07d400 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/PhilippRisius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c2bda5fdc425942b78f87ac371d1f72e9c07d400 -
Trigger Event:
release
-
Statement type: