Skip to content

Commit

Permalink
docs: fix gen_test_case_reference collect only when warnings are present
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Jun 27, 2023
1 parent 55293e2 commit 91b3a28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/gen_test_case_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ def run_collect_only(test_path: Path = source_directory) -> Tuple[str, str]:
collect_only_command = f"fill --collect-only -q --until {DEV_FORKS[-1]} {test_path}"
# strip out the test module
output_lines = [
line.split("::")[1] for line in output.split("\n") if line.startswith("tests/")
line.split("::")[1]
for line in output.split("\n")
if line.startswith("tests/") and "::" in line
]
# prefix with required indent for admonition in MARKDOWN_TEST_CASES_TEMPLATE
collect_only_output = "\n".join(" " + line for line in output_lines)
Expand Down

0 comments on commit 91b3a28

Please sign in to comment.