Skip to main content

5G00EV17-3001 Unit testing

An example project for showcasing unit testing.

Category Badges
PyPI Python versions PyPI - Implementation
Tests codecov Unit tests Ruff
Activity GitHub contributors Last commit
QA CodeFactor Rating
Other License Repository size Code size Lines of code

Description

This project showcases how unit testing works by implementing a very simple Python library, and adding unit tests to it. The project uses Pytest.

Getting Started

Dependencies

The main project has no library dependencies, but the actual unit testing part relies on several packages listed in pyproject.toml. But in general, you'll need:

  • Python 3.11 or newer
  • Poetry

The project is automatically tested on the latest versions of Windows, Mac OS, and Ubuntu, and it has also been tested on both CPython and PyPy. Using other implementations or operating systems may work, but is not guaranteed.

Installation

Please see the documentation here.

Running unit tests

Please see the documentation here.

Version history

The project's changelog can be found here.

License

This project is licensed under the MIT license - see the LICENSE-file for details.

Acknowledgements

Inspiration, code snippets, debugging help, etc.

  • My fellow team members

Metadata

Release files for unit-testing 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unit-testing 1.0.4
File Size Uploaded
unit_testing-1.0.4.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for unit-testing 1.0.4
File Interpreter ABI Platform
unit_testing-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / unit_testing-1.0.4.tar.gz

Download URL unit_testing-1.0.4.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fe93cb1d888ef50e329dcc235d4fb04cb72bff9d8817eb4b02eaf480bd2a47be
BLAKE2b-256 checksum
How to use checksums
ca8d20c3c06ed2d55e2c4d99c39c0306f1b44b160d4da238d2287225315d244d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1015-azure

Release files / unit_testing-1.0.4-py3-none-any.whl

Download URL unit_testing-1.0.4-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9045029ef520d70a91d869b62f666b2618c9debea8679c1a806d1a65bea05e6b
BLAKE2b-256 checksum
How to use checksums
913c73c228a7ecc38310878a92aee99e075628cc5a3e2fd4132566c521d2e77e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1015-azure

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page