From 65675d5a953e9a2f3b2d9b60677f284e7c7a891f Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 27 Oct 2010 15:14:12 +0200 Subject: [PATCH] link to PyYAML parser --HG-- branch : trunk --- doc/example/nonpython.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/example/nonpython.txt b/doc/example/nonpython.txt index 0247b751a..6412d13c9 100644 --- a/doc/example/nonpython.txt +++ b/doc/example/nonpython.txt @@ -6,6 +6,7 @@ a basic example for specifying tests in Yaml files -------------------------------------------------------------- .. _`pytest-yamlwsgi`: http://bitbucket.org/aafshar/pytest-yamlwsgi/src/tip/pytest_yamlwsgi.py +.. _`PyYAML`: http://pypi.python.org/pypi/PyYAML/ Here is an example ``conftest.py`` (extracted from Ali Afshnars special purpose `pytest-yamlwsgi`_ plugin). This ``conftest.py`` will collect ``test*.yml`` files and will execute the yaml-formatted content as custom tests: @@ -17,7 +18,8 @@ You can create a simple example file: .. include:: nonpython/test_simple.yml :literal: -and then execute the yaml - test specification:: +and if you installed `PyYAML`_ or a compatible YAML-parser you can +now execute the test specification:: nonpython $ py.test =========================== test session starts ============================