Base unittest scaffold package
Project description
Unitestify - Generate skeleton test file from Python file.
Support Unnitests and Django tests.
How to use this package?
python unitestify --help
Usage: unitestify.py [OPTIONS]
Unitestify command line arguments.
Options:
--file TEXT Path to file from which to generate test file
--type TEXT Type of test to generate
--help Show this message and exit.
There are two commands available:
* --file - Requires path to a Python file from which you want to generate the base test file.
* --type - Test type, unittest either django
Example
data.py
class Manager:
def manage_data(self):
return "Managing data"
def retrieve_data(self):
return "Retrieved data"
Here is our output file.
test_data.py
import unittest
class TestManager(unittest.TestCase):
"""TestManager."""
def test_manage_data(self):
"""Test manage data."""
def test_retrieve_data(self):
"""Test retrieve data."""
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
unitestify-0.1.0.tar.gz
(3.4 kB
view details)
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 unitestify-0.1.0.tar.gz.
File metadata
- Download URL: unitestify-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.79.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
444112aa73f0535cb7d8466691d77799a8510e1ceb43d23dba5d524b1d0cf46e
|
|
| MD5 |
6ee92fe91cce263285ad28d4fb51ed5f
|
|
| BLAKE2b-256 |
f53422d4162153c0b0d622530a0fb256901f221aab1d95f6918cd2f3435b64f6
|
File details
Details for the file unitestify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unitestify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.79.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
573dd2cc31e128734a736ecdcf4fa2fbf906b1478ee0fdc7490ba6562a6953e6
|
|
| MD5 |
4819c776fb1602b8831e51b75064efbe
|
|
| BLAKE2b-256 |
b95c06256d87981b0660351c2e96868118ee3b7c87101ed711540797e6ee5c8f
|