MCPcopy Create free account
hub / github.com/streamlit/streamlit / test_public_api

Method test_public_api

lib/tests/streamlit/streamlit_test.py:148–157  ·  view source on GitHub ↗

Test that we don't accidentally remove (or add) symbols to the public `st` API.

(self)

Source from the content-addressed store, hash-verified

146 )
147
148 def test_public_api(self):
149 """Test that we don't accidentally remove (or add) symbols
150 to the public `st` API.
151 """
152 api = {
153 k
154 for k, v in st.__dict__.items()
155 if not k.startswith("_") and not isinstance(v, type(st))
156 }
157 assert api == ELEMENT_COMMANDS.union(NON_ELEMENT_COMMANDS)
158
159 def test_pydoc(self):
160 """Test that we can run pydoc on the streamlit package"""

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected