Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VascoSch92 committed Mar 31, 2024
1 parent e03d54c commit 7d1b703
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions tests/tests_meta/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,15 @@ def test_markdown() -> None:

sequences_in_markdown_but_not_in_scripts = sequence_markdown.difference(sequence_scripts)
error_msg = ""
if sequences_in_markdown_but_not_in_scripts != set():
error_msg += (
f"The following sequences are in the SEQUENCE_LIST.md, "
f"but are not implemented: {', '.join(list(sequences_in_markdown_but_not_in_scripts))}\n"
)
sequences_in_markdown_but_not_in_scripts = {entry for entry in sequences_in_markdown_but_not_in_scripts if entry}
if len(sequences_in_markdown_but_not_in_scripts) > 0:
error_msg += f"The following sequences are in the SEQUENCE_LIST.md, " \
f"but are not implemented: {', '.join(list(sequences_in_markdown_but_not_in_scripts))}\n"

sequences_in_scripts_but_not_in_markdown = sequence_scripts.difference(sequence_markdown)
if sequences_in_scripts_but_not_in_markdown != set():
error_msg += (
f"The following sequences are implemented, "
f"but are not in SEQUENCE_LIST.md: {', '.join(list(sequences_in_scripts_but_not_in_markdown))}"
)
if len(sequences_in_scripts_but_not_in_markdown) > 0:
error_msg += f"The following sequences are implemented, " \
f"but are not in SEQUENCE_LIST.md: {', '.join(list(sequences_in_scripts_but_not_in_markdown))}"

if error_msg:
raise Exception(error_msg)

0 comments on commit 7d1b703

Please sign in to comment.