Skip to content

Commit

Permalink
Adding corresponding unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Jan 31, 2022
1 parent 8d620dc commit 5ae9e8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,9 @@ def test_logger(capsys):
translator.translate_line(line)
std = capsys.readouterr()
assert all(['Converted' in each for each in std.err.split('\n')[:-1]]) # last one is an empty line.


def test_print_com_in_converter():
assert 'print_com=True' in convert_apdl_block("/prep7\nN,,,,") # Default
assert 'print_com=True' in convert_apdl_block("/prep7\nN,,,,", print_com=True)
assert 'print_com=True' not in convert_apdl_block("/prep7\nN,,,,", print_com=False)

0 comments on commit 5ae9e8f

Please sign in to comment.