diff options
Diffstat (limited to 'autogpts/autogpt/tests/unit/test_commands.py')
-rw-r--r-- | autogpts/autogpt/tests/unit/test_commands.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/autogpts/autogpt/tests/unit/test_commands.py b/autogpts/autogpt/tests/unit/test_commands.py index 9bff7c12d..a939ec4d2 100644 --- a/autogpts/autogpt/tests/unit/test_commands.py +++ b/autogpts/autogpt/tests/unit/test_commands.py @@ -201,10 +201,11 @@ def test_import_mock_commands_module(): registry.import_command_module(mock_commands_module) - assert "function_based" in registry - assert registry.commands["function_based"].name == "function_based" + assert "function_based_cmd" in registry + assert registry.commands["function_based_cmd"].name == "function_based_cmd" assert ( - registry.commands["function_based"].description == "Function-based test command" + registry.commands["function_based_cmd"].description + == "Function-based test command" ) @@ -230,8 +231,9 @@ def test_import_temp_command_file_module(tmp_path: Path): # Remove the temp directory from sys.path sys.path.remove(str(tmp_path)) - assert "function_based" in registry - assert registry.commands["function_based"].name == "function_based" + assert "function_based_cmd" in registry + assert registry.commands["function_based_cmd"].name == "function_based_cmd" assert ( - registry.commands["function_based"].description == "Function-based test command" + registry.commands["function_based_cmd"].description + == "Function-based test command" ) |