From 4c10fd9b8eca6cb44ca58cea88335bcc2b90bb8f Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee Date: Fri, 5 Apr 2024 10:53:54 +0530 Subject: [PATCH] Add tests. --- tests/test_flobject.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/test_flobject.py b/tests/test_flobject.py index c09d24cd0a3..507ee04bef2 100644 --- a/tests/test_flobject.py +++ b/tests/test_flobject.py @@ -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 == []