cli.name = "test"
self.runner = CliRunner()
streamlit._is_running_with_streamlit = False
patch.object(config._on_config_parsed, "send").start()
def test_run_no_arguments(self):
streamlit run should fail if run with no arguments.
result = self.runner.invoke(cli, ["run"])
After Change
patch.object(cli.bootstrap, "load_config_options"),
]
for p in self.patches:
p.start()
def tearDown(self):
for p in self.patches:
p.stop()