Skip to content

Commit

Permalink
skipped all codeblocks which include triangle brackets, which are use…
Browse files Browse the repository at this point in the history
…d to denoate placeholder variables (the code is not runnable).
  • Loading branch information
djl11 committed Aug 28, 2024
1 parent 00f6e7b commit 1dec06f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 1dec06f

Please sign in to comment.