Skip to content

Commit

Permalink
try to strip out extra code-block typing
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet authored Aug 16, 2024
1 parent 9b94b16 commit e07addb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tutorials/tests/test_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import subprocess
from mdextractor import extract_md_blocks


print("Doing tutorial tests")
lines = "".join(open("Tutorial.md").readlines())
blocks = extract_md_blocks(lines)
Expand All @@ -11,6 +10,8 @@
if n_blocks == 0:
raise ValueError("Did not find any code blocks")
for block in blocks:
# strip out extra typing
block = block.strip('bash')
# DEBUG: TODO: REMOVE
print(f"{block.split()=}")
if block.split()[0].endswith(".py"):
Expand Down

0 comments on commit e07addb

Please sign in to comment.