homework_checker/core/md_writer.py
def write_md_file(self: "MdWriter", md_file_path: Path):
        """Write all the added content to the md file."""
        md_file_content = "# Test results\n"
        md_file_content += self._md_table
        if self._errors:
            md_file_content += "\n# Encountered errors\n"
            md_file_content += self._errors
        md_file_content += SEPARATOR
        md_file_content += FINISHING_NOTE
        with open(md_file_path, "w") as md_file:
            md_file.write(md_file_content)
Write all the added content to the md file.
Write all the added content to the md file.
Write all the added content to the md file .
def write_md_file(self: "MdWriter", md_file_path: Path):
        md_file_content = "# Test results\n"
        md_file_content += self._md_table
        if self._errors:
            md_file_content += "\n# Encountered errors\n"
            md_file_content += self._errors
        md_file_content += SEPARATOR
        md_file_content += FINISHING_NOTE
        with open(md_file_path, "w") as md_file:
            md_file.write(md_file_content)
def write_md_file ( self : "MdWriter" , md_file_path : Path ) : md_file_content = "# Test results\n" md_file_content += self . _md_table if self . _errors : md_file_content += "\n# Encountered errors\n" md_file_content += self . _errors md_file_content += SEPARATOR md_file_content += FINISHING_NOTE with open ( md_file_path , "w" ) as md_file : md_file . write ( md_file_content )
Write all the added content to the md file.
Write all the added content to the md file .
"""Write all the added content to the md file."""
self
"MdWriter"
md_file_path
Path