3e802d4f61abf9fb1b88add829b76f1e309f9957,tests/examples/examples_report_plugin.py,ExamplesTestReport,pytest_sessionfinish,#ExamplesTestReport#Any#,168

Before Change


            template = jinja2.Template(f.read())

        diff_version = get_version_from_git(session.config.option.diff)
        html = template.render(version=__version__, diff=diff_version, entries=self.entries)

        if not os.path.exists(os.path.dirname(self.examplereport)):
            os.makedirs(os.path.dirname(self.examplereport))

After Change


            if pytest.config.option.verbose:
                print()

            for (example, _, _) in self.entries:
                example.upload_imgs()

            upload_file_to_s3_by_job_id(session.config.option.report_path, "text/html", "EXAMPLES REPORT SUCCESSFULLY UPLOADED")
            upload_file_to_s3_by_job_id(session.config.option.log_file, "text/text", "EXAMPLES LOG SUCCESSFULLY UPLOADED")

    def pytest_terminal_summary(self, terminalreporter):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: bokeh/bokeh
Commit Name: 3e802d4f61abf9fb1b88add829b76f1e309f9957
Time: 2017-02-16
Author: mattpap@gmail.com
File Name: tests/examples/examples_report_plugin.py
Class Name: ExamplesTestReport
Method Name: pytest_sessionfinish


Project Name: lcswillems/torch-rl
Commit Name: 68ec284dd57ba00230c6c6199cbb71d53e0696fc
Time: 2019-12-25
Author: maximechevalierb@gmail.com
File Name: scripts/visualize.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 267cda447e17d5643bca365718d3a049c402aeb6
Time: 2016-09-08
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/helpers/service.py
Class Name:
Method Name: call_from_config