Summary
Exam is a Python toolkit for writing better tests. It aims to remove a lot of the boiler plate testing code one often writes, while still following Python conventions and adhering to the unit testing interface. Aside from the obvious "does the code work?", writings tests has many additional goals and benefits: If written semantically, reading tests can help demonstrate how the code is supposed to work to other developers. If quick running, tests provide feedback during development that your changes are working or not having an adverse side effects. If they're easy to write correctly, developers will write more tests and they will be of a higher quality. Unfortunately, the common pattern for writing Python unit tests tends to not offer any of these advantages. Often times results in inefficient and unnecessarily obtuse testing code. Additionally, common uses of the mock library can often result in repetitive boiler-plate code or inefficiency during test runs. exam aims to improve the state of Python test writing by providing a toolkit of useful functionality to make writing quick, correct and useful tests and as painless as possible.
Versions
v0.10.6 :: 0 :: gentoo
- Modified
- License
- MIT
- Keywords
- ~amd64
- USE flags
- test
USE flags
General
- test
- Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
python_targets
- python3_7
- Build with Python 3.7
- python3_8
- Build with Python 3.8
- python3_9
- Build with Python 3.9
Runtime Dependencies
dev-lang / python : An interpreted, interactive, object-oriented programming language
dev-lang / python-exec : Python script wrapper
dev-python / mock : Rolling backport of unittest.mock for all Pythons
Change logs
- Repository mirror & CI · gentoo
Merge updates from master - Michał Górny · gentoo
*/*: Remove obsolete values from PYTHON_COMPAT
Signed-off-by: Michał Górny <mgorny@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Michał Górny · gentoo
dev-python/exam: Port up to py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org> - Repository mirror & CI · gentoo
Merge updates from master - Alessandro Barbieri · gentoo
dev-python/exam: new package
Exam is a Python toolkit for writing better tests. Closes: https://bugs.gentoo.org/710912 Package-Manager: Portage-2.3.94, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14964 Signed-off-by: Joonas Niilola <juippis@gentoo.org>