Flask-Zen is an extension to Flask that allows you to use PyZen via Flask-Script commands. Both a simple test runner command and the standard PyZen auto-runner are provided. You can install the requirements from PyPI with easy_install or pip or download them by hand.
Installation
Install the extension with one of the following commands:
$ easy_install Flask-Zen
or alternatively if you have pip installed:
$ pip install Flask-Zen
Configuration
PyZen exposes two Flask-Script commands: Test and ZenTest. To configure both:
from flaskext.script import Manager
from flaskext.zen import Test, ZenTest
manager = Manager(app)
manager.add_command('test', Test())
manager.add_command('zen', ZenTest())
if __name__ == '__main__':
manager.run()
Any of the command-line options below can be overridden using a keyword argument to the Test or ZenTest constructor:
manager.add_command('zen', ZenTest(nocolor=True, ui='none'))
Usage
The Test command will run a single test run and exit. The ZenTest command will run the normal PyZen continuous tester.
- -s, --start-dirdefault: location of manage.py
Base directory for test discovery.
- -p, --patterndefault: */tests/*.py;*/tests.py
Semicolon separated file globs to use for loading tests.
- -v, --verbositydefault: 1
Test runner verbosity.
- --nocolorflag, default: False
Disable colored output.
- -u, --uionly for ZenTest, default: autodetect
Force the use of a specific UI module. Available options are win32, osx, linux, and none.
Metadata
Release files for Flask-Zen 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Zen-0.2.tar.gz | 49.2 kB | Without provenance | Details for Flask-Zen-0.2.tar.gz |
Release files / Flask-Zen-0.2.tar.gz
| Download URL | Flask-Zen-0.2.tar.gz |
|---|---|
| Size | 49.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84dfaaad6b23e3192ca24f1afde6f25d0a1476495938032d41b0701dadf1477e
|
|
BLAKE2b-256 checksum How to use checksums |
a1219080f2c2f3a26a4ea90a9dd8dc78a7da3ecae5ddba76dbf6422b35d7f27d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Zen 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.