From 1dec06f4c600e54f727118902c14803108e10c81 Mon Sep 17 00:00:00 2001 From: djl11 Date: Wed, 28 Aug 2024 01:37:08 -0700 Subject: [PATCH] skipped all codeblocks which include triangle brackets, which are used to denoate placeholder variables (the code is not runnable). --- tests/helpers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/helpers.py b/tests/helpers.py index e99f3162f..82e92ee44 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -47,6 +47,9 @@ def _test_python_fn(str_in: str) -> None: all_passed = True results = dict() for example in examples: + if "<" in example and ">" in example: + # there is a placeholder, not runnable + continue example_w_key = "import unify\n" + _replace_api_key_placeholders(example) try: _test_python_fn(example_w_key) @@ -65,6 +68,9 @@ def _test_shell_fn(str_in: str) -> None: all_passed = True results = dict() for example in examples: + if "<" in example and ">" in example: + # there is a placeholder, not runnable + continue example_w_key = _replace_api_key_placeholders(example) try: _test_shell_fn(example_w_key)