MCPcopy Create free account
hub / github.com/datapane/datapane / _view_to_xml_and_files

Function _view_to_xml_and_files

python-client/tests/client/views/test_views.py:38–41  ·  view source on GitHub ↗

Create a viewstate resulting from converting the View to XML & in-mem B64 files

(app_or_view: t.Union[dp.Blocks, dp.App])

Source from the content-addressed store, hash-verified

36
37
38def _view_to_xml_and_files(app_or_view: t.Union[dp.Blocks, dp.App]) -> ViewState:
39 """Create a viewstate resulting from converting the View to XML & in-mem B64 files"""
40 s = ViewState(blocks=app_or_view, file_entry_klass=B64FileEntry)
41 return Pipeline(s).pipe(PreProcessView()).pipe(ConvertXML()).state
42
43
44def assert_view(

Callers 2

assert_viewFunction · 0.85
test_gen_failing_viewsFunction · 0.85

Calls 5

ViewStateClass · 0.90
PipelineClass · 0.90
PreProcessViewClass · 0.90
ConvertXMLClass · 0.90
pipeMethod · 0.80

Tested by

no test coverage detected