Skip to content

Commit 776a632

Browse files
authored
Merge pull request #5540 from bazcrown/yml2yaml
Substituted 'yml' to '.yaml' in relevant files
2 parents d74a975 + 1b0e8d7 commit 776a632

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

doc/en/example/nonpython.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ A basic example for specifying tests in Yaml files
1212
.. _`pytest-yamlwsgi`: http://bitbucket.org/aafshar/pytest-yamlwsgi/src/tip/pytest_yamlwsgi.py
1313
.. _`PyYAML`: https://pypi.org/project/PyYAML/
1414

15-
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:
1616

1717
.. include:: nonpython/conftest.py
1818
:literal:
1919

2020
You can create a simple example file:
2121

22-
.. include:: nonpython/test_simple.yml
22+
.. include:: nonpython/test_simple.yaml
2323
:literal:
2424

2525
and if you installed `PyYAML`_ or a compatible YAML-parser you can
2626
now execute the test specification:
2727

2828
.. code-block:: pytest
2929
30-
nonpython $ pytest test_simple.yml
30+
nonpython $ pytest test_simple.yaml
3131
=========================== test session starts ============================
3232
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
3333
cachedir: $PYTHON_PREFIX/.pytest_cache
3434
rootdir: $REGENDOC_TMPDIR/nonpython
3535
collected 2 items
3636
37-
test_simple.yml F. [100%]
37+
test_simple.yaml F. [100%]
3838
3939
================================= FAILURES =================================
4040
______________________________ usecase: hello ______________________________
@@ -69,8 +69,8 @@ consulted when reporting in ``verbose`` mode:
6969
rootdir: $REGENDOC_TMPDIR/nonpython
7070
collecting ... collected 2 items
7171
72-
test_simple.yml::hello FAILED [ 50%]
73-
test_simple.yml::ok PASSED [100%]
72+
test_simple.yaml::hello FAILED [ 50%]
73+
test_simple.yaml::ok PASSED [100%]
7474
7575
================================= FAILURES =================================
7676
______________________________ usecase: hello ______________________________
@@ -93,7 +93,7 @@ interesting to just look at the collection tree:
9393
rootdir: $REGENDOC_TMPDIR/nonpython
9494
collected 2 items
9595
<Package $REGENDOC_TMPDIR/nonpython>
96-
<YamlFile test_simple.yml>
96+
<YamlFile test_simple.yaml>
9797
<YamlItem hello>
9898
<YamlItem ok>
9999

doc/en/example/nonpython/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
def pytest_collect_file(parent, path):
6-
if path.ext == ".yml" and path.basename.startswith("test"):
6+
if path.ext == ".yaml" and path.basename.startswith("test"):
77
return YamlFile(path, parent)
88

99

doc/en/example/nonpython/test_simple.yml renamed to doc/en/example/nonpython/test_simple.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# test_simple.yml
1+
# test_simple.yaml
22
ok:
33
sub1: sub1
44

0 commit comments

Comments
 (0)