You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
15
+
Here is an example ``conftest.py`` (extracted from Ali Afshnars special purpose `pytest-yamlwsgi`_ plugin). This ``conftest.py`` will collect ``test*.yaml`` files and will execute the yaml-formatted content as custom tests:
16
16
17
17
.. include:: nonpython/conftest.py
18
18
:literal:
19
19
20
20
You can create a simple example file:
21
21
22
-
.. include:: nonpython/test_simple.yml
22
+
.. include:: nonpython/test_simple.yaml
23
23
:literal:
24
24
25
25
and if you installed `PyYAML`_ or a compatible YAML-parser you can
26
26
now execute the test specification:
27
27
28
28
.. code-block:: pytest
29
29
30
-
nonpython $ pytest test_simple.yml
30
+
nonpython $ pytest test_simple.yaml
31
31
=========================== test session starts ============================
32
32
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
0 commit comments