Spaces:
Running
Running
Download python_embed/Lib/site-packages/matplotlib/tests/test_doc.py from Aluode/PerceptionLabPortable: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/matplotlib/tests/test_doc.py
- Command line
-
hf download hf://spaces/Aluode/PerceptionLabPortable/python_embed/Lib/site-packages/matplotlib/tests/test_doc.py
-
curl -L -o test_doc.py https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/matplotlib/tests/test_doc.py
1.02 kB
| import pytest | |
| def test_sphinx_gallery_example_header(): | |
| """ | |
| We have copied EXAMPLE_HEADER and modified it to include meta keywords. | |
| This test monitors that the version we have copied is still the same as | |
| the EXAMPLE_HEADER in sphinx-gallery. If sphinx-gallery changes its | |
| EXAMPLE_HEADER, this test will start to fail. In that case, please update | |
| the monkey-patching of EXAMPLE_HEADER in conf.py. | |
| """ | |
| pytest.importorskip('sphinx_gallery', minversion='0.16.0') | |
| from sphinx_gallery import gen_rst | |
| EXAMPLE_HEADER = """ | |
| .. DO NOT EDIT. | |
| .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. | |
| .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: | |
| .. "{0}" | |
| .. LINE NUMBERS ARE GIVEN BELOW. | |
| .. only:: html | |
| .. note:: | |
| :class: sphx-glr-download-link-note | |
| :ref:`Go to the end <sphx_glr_download_{1}>` | |
| to download the full example code.{2} | |
| .. rst-class:: sphx-glr-example-title | |
| .. _sphx_glr_{1}: | |
| """ | |
| assert gen_rst.EXAMPLE_HEADER == EXAMPLE_HEADER | |