Skip to content

Commit

Permalink
Release 2.7.0
Browse files Browse the repository at this point in the history
* add -l to gabbi-run for local loading
  • Loading branch information
cdent committed Mar 21, 2022
1 parent 8511156 commit 5e76332
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/source/release.rst
Expand Up @@ -5,6 +5,12 @@ These are informal release notes for gabbi since version 1.0.0,
highlighting major features and changes. For more detail see
the `commit logs`_ on GitHub.

2.7.0
-----

* Add ``-l`` argument to :doc:`gabbi-run <runner>` to allow loading content
and response handlers relative to the local directory.

2.6.0
-----
* Fix naming of tests when using pytest. This changes means that setting
Expand Down
10 changes: 10 additions & 0 deletions docs/source/runner.rst
Expand Up @@ -63,3 +63,13 @@ Use ``-v`` or ``--verbose`` with a value of ``all``, ``headers`` or ``body``
to turn on :ref:`verbosity <metadata>` for all tests being run.

Use ``-q`` or ``--quiet`` to silence test runner output.

Use ``-r`` or ``--response-handler`` to load a custom response or content
handler for use with tests.

Use ``-l`` to load response handlers relative to the current working directory.

For example, to load a handler named ``HTMLHandler`` from the ``handlers.html``
module relative to the current directory:

gabbi-run -l -r handlers.html:HTMLHandler http://example.com < my.yaml
2 changes: 1 addition & 1 deletion gabbi/__init__.py
Expand Up @@ -12,4 +12,4 @@
# under the License.
"""See gabbi.driver and gabbbi.case."""

__version__ = '2.6.0'
__version__ = '2.7.0'
11 changes: 11 additions & 0 deletions gabbi/runner.py
Expand Up @@ -70,6 +70,17 @@ def run():
Output is formatted as unittest summary information. Use `-q` or
`--quiet` to silence that output.
Use ``-r`` or ``--response-handler`` to load a custom response or content
handler for use with tests.
Use ``-l`` to load response handlers relative to the current working
directory.
For example, to load a handler named ``HTMLHandler`` from the
``handlers.html`` module relative to the current directory:
gabbi-run -l -r handlers.html:HTMLHandler http://example.com < my.yaml
"""
parser = _make_argparser()

Expand Down

0 comments on commit 5e76332

Please sign in to comment.