File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1717__all__ = (
1818 "ShinyAppProc" ,
1919 "create_app_fixture" ,
20+ "create_doc_example_fixture" ,
2021 "create_example_fixture" ,
2122 "local_app" ,
2223 "run_shiny_app" ,
@@ -193,9 +194,17 @@ def fixture_func():
193194
194195
195196def create_example_fixture (example_name : str , scope : str = "module" ):
197+ """Used to create app fixtures from apps in py-shiny/examples"""
196198 return create_app_fixture (here / "../examples" / example_name / "app.py" , scope )
197199
198200
201+ def create_doc_example_fixture (example_name : str , scope : str = "module" ):
202+ """Used to create app fixtures from apps in py-shiny/shiny/examples"""
203+ return create_app_fixture (
204+ here / "../shiny/examples" / example_name / "app.py" , scope
205+ )
206+
207+
199208@pytest .fixture (scope = "module" )
200209def local_app (request : pytest .FixtureRequest ) -> Generator [ShinyAppProc , None , None ]:
201210 sa = run_shiny_app (PurePath (request .path ).parent / "app.py" , wait_for_start = False )
You can’t perform that action at this time.
0 commit comments