File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 17
17
PyZen adds a new manage.py command ``zen``. To close the tester use
18
18
ctrl+c.
19
19
20
- Flask
21
- =====
22
- Using PyZen with Flask requires Flask-Script and plays well with
23
- Flask-Testing (though it is not required).
24
-
25
- Configuration
26
- -------------
27
- PyZen exposes two Flask-Script commands: ``Test`` and ``ZenTest``. To
28
- configure both::
29
-
30
- from flaskext.script import Manager
31
- from pyzen.flaskext.script import Test, ZenTest
32
-
33
- manager = Manager(app)
34
-
35
- manager.add_command('test', Test())
36
- manager.add_command('zen', ZenTest())
37
-
38
- if __name__ == "__main__":
39
- manager.run()
40
-
41
-
42
- The default discovery pattern is ``*/tests/*.py;*/tests.py``. This default
43
- can be override with a ``pattern`` keyword argument to both classes.
44
-
45
- Usage
46
- -----
47
- The ``Test`` command will run a single test run and exit. The ``ZenTest``
48
- command will run the normal PyZen continuous tester. You can override the
49
- auto-detected base directory with the ``--start-dir=`` argument.
You can’t perform that action at this time.
0 commit comments