From e07addb275b732690e93c0d5cbae98e3f796b702 Mon Sep 17 00:00:00 2001 From: Sander Roet Date: Fri, 16 Aug 2024 15:32:58 +0200 Subject: [PATCH] try to strip out extra code-block typing --- docs/tutorials/tests/test_tutorial.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/tests/test_tutorial.py b/docs/tutorials/tests/test_tutorial.py index b24e5612..4e5c4294 100644 --- a/docs/tutorials/tests/test_tutorial.py +++ b/docs/tutorials/tests/test_tutorial.py @@ -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) @@ -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"):