When comparing files, it can be useful to ignore the content of lines which start by a comment as long as the comment is present of both files in the same line.
Hence, the optional argument comment_char has been added to _same_file_content and _assert_identical_files. The default value has been set to ">" which correspond to the header of fasta files. Indeed, right now, the content of those headers is the path of the file which can differ when comparing 2 files without having different contents. (This will be true when the tests will be moved to the package).
By using this default value, it offers the possibility to set it to another value without touching the rest of the tests.
When comparing files, it can be useful to ignore the content of lines which start by a comment as long as the comment is present of both files in the same line.
Hence, the optional argument
comment_char
has been added to_same_file_content
and_assert_identical_files
. The default value has been set to ">" which correspond to the header of fasta files. Indeed, right now, the content of those headers is the path of the file which can differ when comparing 2 files without having different contents. (This will be true when the tests will be moved to the package).By using this default value, it offers the possibility to set it to another value without touching the rest of the tests.