Skip to main content

This project contains basic elements for testing purposes and the ability

Project description

core-tests


This project contains basic elements for testing purposes and the ability to run (via console commands) tests and code coverage (unittest-based). This way, we can stick to the DRY -- Don't Repeat Yourself principle...

How to Use

pip install core-tests
# manager.py

from click.core import CommandCollection
from core_tests.tests.runner import cli_tests

if __name__ == "__main__":
    cli = CommandCollection(sources=[cli_tests()])
    cli()
python manager.py run-tests
python manager.py run-coverage

Execution Environment

Install libraries

pip install --upgrade pip 
pip install virtualenv

Create the Python Virtual Environment.

virtualenv --python=python3.11 .venv

Activate the Virtual Environment.

source .venv/bin/activate

Install required libraries.

pip install .

Check tests and coverage...

python manager.py run-tests
python manager.py run-coverage

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

core_tests-1.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

core_tests-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file core_tests-1.1.0.tar.gz.

File metadata

  • Download URL: core_tests-1.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for core_tests-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fc065a60904749194f65fb1f176ed0c044b7694e53e383462c4eb95d0eb95dc2
MD5 af87171df25841258cc2330eea2a8bac
BLAKE2b-256 06c26e58c28039d266cd97acc16f753f2822b9410361d39a5fb3586a1dd4bc88

See more details on using hashes here.

File details

Details for the file core_tests-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: core_tests-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for core_tests-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 632c6895c2aeef74c3ce5f52a920e1d33f3939178b2133e0240e933fef1b3604
MD5 5cd589ccc1df298c5c0a5a187750a6b1
BLAKE2b-256 135fcaad04cd556b4e865f8714b8626285f218da32dd697b9e6b524cce4a45b0

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