Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Apr 20, 2022
1 parent ccd39b0 commit 8ec6840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def test_parameters_name(mapdl, func, par_name):
elif func == "parameters":
mapdl.parameters[par_name] = 17.0

if not re.search(r"[\(|\)]", par_name):
if not re.search(r"[\(|\)]", par_name) and not re.search(r"_.*_", par_name):
# Avoiding check if indexing or starting and ending with _.
assert mapdl.parameters[par_name]
assert isinstance(mapdl.parameters[par_name], float)

0 comments on commit 8ec6840

Please sign in to comment.