Skip to main content

A very simple test framework

Project description

PySimpleTest -- Make test as simple as possible

PySimpleTest is a very simple test framwork. To start using it, try following example:
Write a file main.py:

from PySimpleTest import *

a = 2
should_be_equal(a, 2)
should_be_less(a, 1)

Then run it. You can get following cmd output:

avatar

Please see full documentation at https://github.com/Time-Coder/PySimpleTest

Release Note

1.0.8

  • Make it can works in Python console mode
  • Support lambda expression in {should|must}_{be|become|keep}_{true|false} and wait_until[_not] functions
  • Add {should|must}_[not_]raise function
  • Add gui_on, gui_off function to control gui on/off
  • Add --gui {on|off} terminal parameter to control gui on/off
  • Delay the gui and voice module loading to user call gui_on or void_on

1.0.7

  • Fix issue #1: should_be_true works fine now;
  • Fix issue #2: PySimpleTest can run on Linux and Mac now.

1.0.6

  • Don't need enable(enhance_func) any more;
  • Fix "exit code not working" bug.

1.0.5

  • Added Section class. User can use Section with Python with syntax instead of section, end_section, subsection.

1.0.2

  • First release for all basic functions.

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

PySimpleTest-1.0.8.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

PySimpleTest-1.0.8-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file PySimpleTest-1.0.8.tar.gz.

File metadata

  • Download URL: PySimpleTest-1.0.8.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.2

File hashes

Hashes for PySimpleTest-1.0.8.tar.gz
Algorithm Hash digest
SHA256 95b881d4d865d1a64a2ae61c1a25222de757ba2993b524860270b8980e405fc6
MD5 648394074abac938fddb3d276713f59c
BLAKE2b-256 e34e5139454bb7a0302fbb3bf88a7aa948741b84c3526e540b963d41ce57a09b

See more details on using hashes here.

File details

Details for the file PySimpleTest-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: PySimpleTest-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.2

File hashes

Hashes for PySimpleTest-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 12969ad51a784a8602e12f782991004dcfe350d7a69311cf24ea739f95a5e29f
MD5 343b00633e4409422e4a46442e98cc07
BLAKE2b-256 0b68889905c360d24afee8c48fbdcee3168e2537a10eb1b313f97d023d250ac3

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