Skip to main content

An example project for showcasing unit testing.

Project description

5G00EV17-3001 Unit testing

An example project for showcasing unit testing.

Category Badges
PyPI Python versions PyPI - Implementation
Tests codecov Unit tests Unit tests Unit tests
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unit_testing-1.0.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

unit_testing-1.0.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file unit_testing-1.0.3.tar.gz.

File metadata

  • Download URL: unit_testing-1.0.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure

File hashes

Hashes for unit_testing-1.0.3.tar.gz
Algorithm Hash digest
SHA256 75fdc005ff96d9cadb7e5e1f9267cc8cb4a3409b9146ee25b017d78acdb356c5
MD5 2f7ea98f7b41bc28cb9465eebfb9b700
BLAKE2b-256 c0beeb703f90154f3d06c1c2f93b4329da672e9f6b8db5d0ddfcfe8d61309ccb

See more details on using hashes here.

File details

Details for the file unit_testing-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: unit_testing-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure

File hashes

Hashes for unit_testing-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b62c6b59e3fa191d272a80d5593e7b08a88077985b58e11b69ce584e78b1f06b
MD5 e995007a97c3c5852440704c5b069325
BLAKE2b-256 ce5b7f4a276a2e3fabd7069532035dd8121006cf0908571d0ae41d71b68c6fed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page