mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 00:44:22 +01:00
Maybe fix tests, fix safe_path function.
This commit is contained in:
@@ -139,7 +139,7 @@ class TestCommandRegistry:
|
||||
def test_import_mock_commands_module(self):
|
||||
"""Test that the registry can import a module with mock command plugins."""
|
||||
registry = CommandRegistry()
|
||||
mock_commands_module = "auto_gpt.tests.mocks.mock_commands"
|
||||
mock_commands_module = "tests.mocks.mock_commands"
|
||||
|
||||
registry.import_commands(mock_commands_module)
|
||||
|
||||
@@ -155,7 +155,7 @@ class TestCommandRegistry:
|
||||
registry = CommandRegistry()
|
||||
|
||||
# Create a temp command file
|
||||
src = Path("/app/auto_gpt/tests/mocks/mock_commands.py")
|
||||
src = Path("mocks/mock_commands.py")
|
||||
temp_commands_file = tmp_path / "mock_commands.py"
|
||||
shutil.copyfile(src, temp_commands_file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user