Skip to content

Commit

Permalink
Add tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
prmukherj committed Apr 5, 2024
1 parent b8e1374 commit 4c10fd9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/test_flobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,3 +1146,25 @@ def test_static_info_hash_identity(new_solver_session):
hash1 = _gethash(solver._settings_service.get_static_info())
hash2 = _gethash(solver._settings_service.get_static_info())
assert hash1 == hash2


@pytest.mark.fluent_version(">=24.2")
def test_default_argument_names_for_commands(load_static_mixer_settings_only):
solver = load_static_mixer_settings_only

assert solver.results.graphics.contour.command_names == [
"delete",
"rename",
"list",
"list_properties",
"make_a_copy",
"display",
"copy",
"add_to_graphics",
"clear_history",
]

assert solver.results.graphics.contour.rename.argument_names == ["new", "old"]
assert solver.results.graphics.contour.delete.argument_names == ["name_list"]
# The below is the default behaviour when no arguments are associated with the command.
assert solver.results.graphics.contour.list.argument_names == []

0 comments on commit 4c10fd9

Please sign in to comment.