Skip to main content

Module for unit testing

Project description

utesting-py

GitHub: https://github.com/s0urcedev/utesting-py

PyPi: https://pypi.org/project/utesting/

Python module for unit testing

Installation:

pip install utesting

Importing:

from utesting import ResultState # not necessary
from utesting import ResultStates # not necessary
from utesting import Unit # not necessary
from utesting import TestCase # necessary (for creating test cases)
from utesting import TestGroup # not necessary
from utesting import TestCaseResult # not necessary
from utesting import Test # necessary (for additing and running testing)

Using:

test(group, output) — test test group

test_async(group, output) — async version of test

@mark_test_unit(cases, asynchronous, only_errors, only_time, no_print) — decorator for marking test unit

add_test_unit(callback, cases, asynchronous, only_errors, only_time, no_print) — same as mark_test_unit, but can't be used as decorator

test_all(file_name) — running testing all marked(added) units

test_all_asyc(file_name) — async version of test_all

And other documentation in utesting/__init__.py and examples in examples.py

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

utesting-2.3.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utesting-2.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file utesting-2.3.0.tar.gz.

File metadata

  • Download URL: utesting-2.3.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for utesting-2.3.0.tar.gz
Algorithm Hash digest
SHA256 f8e3fee723b19d88a12e80831a7a15e82c7947c1f80e600a208b72c9fd7a636d
MD5 c3db67f96b81a4efc1bc2f7ebc8310e5
BLAKE2b-256 04dc2a8e1f9fadc919f3b762c3ea64cd8aec0f2f8aad0b89a5f12aa210269cc1

See more details on using hashes here.

File details

Details for the file utesting-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: utesting-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for utesting-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89a491353d695109355e9432442b5492045385ec5dc2bb72ae7db1fd2afec9aa
MD5 6e8b523f21cb2c52a19379ebc4bf642c
BLAKE2b-256 4841c5ec606d2ee230738b4c69f3d55cb122d9d45c8bb9ea1587bf223370cb3b

See more details on using hashes here.

Supported by

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