Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Apr 11, 2024
1 parent 64a6b70 commit 3a04c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_reserved_terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def test_variable_ops_as_square_brackets():
error = []
for variable in dsd.variable:
if reserved_terms := [r for r in RESERVED_TERMS if "|" + r in variable]:
error.append(f"Variable '{variable}' -> '... [{''.join(reserved_terms)}]'")
error.append(f"'{variable}' -> '... [{''.join(reserved_terms)}]'")
if error:
raise ValueError(
f"Found reserved terms in the following variables:\n{'\n - '.join(error)}"
"Reserved terms in the following variables:\n - " + "\n - ".join(error)
)

0 comments on commit 3a04c1e

Please sign in to comment.