A modern testing framework
Project description
Viper
A modern testing framework.
How to use it
Viper was made for people of all types and expertise. To make a simple test, you can use the following code:
from viper import Viper
snake = Viper("Example Tests")
def addition(a, b):
return a + b
snake.test("check if addition function can solve 5 + 5", addition(5, 5), 10)
snake.evaluate()
On running this, you should get:
This is Viper, a modern testing framework, created by Aarush Gupta (https://aarushgupta.tk)
Running tests for "Example Tests"
Testing "check if addition function can solve 5 + 5"... Passed
Ran 1 test(s) in 0.0004 seconds
1/1 passed
And if we change the 10 to become something else like so:
snake.test("check if addition function can solve 5 + 5", addition(5, 5), 7)
The output becomes:
This is Viper, a modern testing framework, created by Aarush Gupta (https://aarushgupta.tk)
Running tests for "Example Tests"
Testing "check if addition function can solve 5 + 5"... Failed
Desired Output: "7" | Test Ouput: "10"
Ran 1 test(s) in 0.0006 seconds
0/1 passed
As one can see, the testing outputs are made so that it is simple, yet it is also informative
Copyrighted
Copyright © 2020-2021 Aarush Gupta
Please don't alter the code and call it your own. See the LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viper-tests-0.1.tar.gz.
File metadata
- Download URL: viper-tests-0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.3.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccb99e71554d56f49fb65c118d591b33b933a7ada515219b3ecb1a455c14d640
|
|
| MD5 |
1dea7f981dd190d07af8dc79f37c5aa8
|
|
| BLAKE2b-256 |
d567943c09d1b03381ac23ec2f115aad5047bc4bbcd494de4da812d2a383a839
|
File details
Details for the file viper_tests-0.1-py3-none-any.whl.
File metadata
- Download URL: viper_tests-0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.3.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26de78c63bf43934d8e89098e34fbb757d6ca8c83fadf6e35f9efb38fea05090
|
|
| MD5 |
b369c29162bf79e7c1f90611716f374d
|
|
| BLAKE2b-256 |
000e9c046bb10c785f58eef6b2ca00000c8c666a9cd95caeb6068c2262095df1
|