eda3fa909294d95e9b620876764c54602b5a3aa0,lib/tests/streamlit/cli_test.py,CliTest,setUp,#CliTest#,42
Before Change
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
self.runner = CliRunner()
streamlit._is_running_with_streamlit = False
self.patches = [
patch.object(config._on_config_parsed, "send"),
// Make sure the calls to `streamlit run` in this file don"t unset
// the config options loaded in conftest.py.
patch.object(cli.bootstrap, "load_config_options"),
]
for p in self.patches:
p.start()
def tearDown(self):
for p in self.patches:
p.stop()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: streamlit/streamlit
Commit Name: eda3fa909294d95e9b620876764c54602b5a3aa0
Time: 2021-03-15
Author: 76131205+bh-streamlit@users.noreply.github.com
File Name: lib/tests/streamlit/cli_test.py
Class Name: CliTest
Method Name: setUp
Project Name: streamlit/streamlit
Commit Name: eda3fa909294d95e9b620876764c54602b5a3aa0
Time: 2021-03-15
Author: 76131205+bh-streamlit@users.noreply.github.com
File Name: lib/tests/streamlit/cli_test.py
Class Name: CliTest
Method Name: setUp
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 8e647100ce1e791b87bfd2cf03df51bf7a12a4b1
Time: 2017-06-29
Author: yutiansut@qq.com
File Name: test/tread_queue.py
Class Name:
Method Name:
Project Name: studioml/studio
Commit Name: 5ae675c018c7a0f6974107bb14614b5d19d5a084
Time: 2017-05-28
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: FirebaseProvider
Method Name: checkpoint_experiment