Test that we don't accidentally remove (or add) symbols to the public `st` API.
(self)
| 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""" |