gradio/test/test_documentation.py
Victor Muštar 70227354e6
UI update: API documentation page (#2652)
* changes

* update UI

* ui update

* add font weight 600 to google font <link>

* import paths

* changes

* changes

* changes

* changes

* Update ui/packages/app/src/ApiDocs.svelte

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>

* changes

* changes

* changes

* changes

* changes

* changes

Co-authored-by: Ali Abid <aabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-11-20 16:21:01 -06:00

19 lines
424 B
Python

import os
import sys
import pytest
import gradio as gr
os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
class TestDocumentation:
@pytest.mark.skipif(
sys.version_info < (3, 8),
reason="Docs use features in inspect module not available in py 3.7",
)
def test_website_documentation(self):
documentation = gr.documentation.generate_documentation()
assert len(documentation) > 0