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


            patch.object(cli.bootstrap, "load_config_options"),
        ]

        for p in self.patches:
            p.start()

    def tearDown(self):
        for p in self.patches:
            p.stop()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: hanxiao/bert-as-service
Commit Name: 83576d1223c1c4753064ab21eee7b39a1d006527
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: example3.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: d32ecf41fbcfd2b050cf14a76638a9e5b9e5345a
Time: 2019-10-08
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/config_test.py
Class Name: ConfigTest
Method Name: setUp