Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710912 - dev-python/exam new package
Summary: dev-python/exam new package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: https://pypi.org/project/exam/
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 709750
  Show dependency tree
 
Reported: 2020-02-26 20:29 UTC by Alessandro Barbieri
Modified: 2020-03-17 07:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2020-02-26 20:29:26 UTC
LICENSE: MIT

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.


Rationale

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.
Comment 1 Jonas Stein gentoo-dev 2020-03-01 12:12:11 UTC
https://repology.org/project/exam/versions
Comment 2 Larry the Git Cow gentoo-dev 2020-03-17 07:48:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1493ca72a06bef5e5884df268657409d4b204003

commit 1493ca72a06bef5e5884df268657409d4b204003
Author:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
AuthorDate: 2020-03-16 01:32:03 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-03-17 07:48:08 +0000

    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>

 dev-python/exam/Manifest           |  1 +
 dev-python/exam/exam-0.10.6.ebuild | 22 ++++++++++++++++++++++
 dev-python/exam/metadata.xml       | 28 ++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)