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))
with open(self.examplereport, "w", encoding="utf-8") as f:
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):