Gradescope-utils

Latest version: v0.5.0

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.0

What's Changed
* Add MIT License by ibrahima in https://github.com/gradescope/gradescope-utils/pull/26
* Convert the value passed to `number` to a string by trombonehero in https://github.com/gradescope/gradescope-utils/pull/20
* Hide error messages by peterstory in https://github.com/gradescope/gradescope-utils/pull/25
* Use "status" prop and other misc improvements by isaacl in https://github.com/gradescope/gradescope-utils/pull/27
* Make test failure prefix msg configurable by isaacl in https://github.com/gradescope/gradescope-utils/pull/29

New Contributors
* trombonehero made their first contribution in https://github.com/gradescope/gradescope-utils/pull/20
* peterstory made their first contribution in https://github.com/gradescope/gradescope-utils/pull/25
* isaacl made their first contribution in https://github.com/gradescope/gradescope-utils/pull/27

**Full Changelog**: https://github.com/gradescope/gradescope-utils/compare/v0.4.0...v0.5.0

0.4.0

Adds a callback function to JSONTestRunner which can be used to modify the autograder results at the end of the test suite but before they are written to disk.

Usage Example:

python
def post_process(results):
results["score"] = 9001

if __name__ == '__main__':
suite = unittest.defaultTestLoader.discover('tests')

JSONTestRunner(visibility='visible', post_processor=post_process).run(suite)


https://github.com/gradescope/gradescope-utils/pull/16

0.3.1

The `number` decorator allows setting the "number" field on tests, which is used to sort the tests when displayed on Gradescope. See the [format specification](https://gradescope-autograders.readthedocs.io/en/latest/specs/#output-format) for more information.

0.3.0

Adds a new decorator, `partial_credit`, which allows setting the final score directly for cases where you want to give partial credit.

When using it, you don't need to use the `weight` decorator (you pass in the test weight to `partial_credit`).

0.2.8

https://github.com/gradescope/gradescope-utils/pull/8

0.2.7

JSONTestRunner now accepts options for setting the top-level `visibility` and `stdout_visibility` fields (see the [docs](https://gradescope-autograders.readthedocs.io/en/latest/specs/) for more details).

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.