Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fix test

BillSchumacherd394b032d79f
diff --git a/tests/test_commands.py b/tests/test_commands.py
index a1fe0cb518..4be41a9080 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1,4 +1,5 @@
import shutil
+import os
import sys
from pathlib import Path
@@ -155,7 +156,7 @@ class TestCommandRegistry:
registry = CommandRegistry()
# Create a temp command file
- src = Path("mocks/mock_commands.py")
+ src = Path(os.getcwd()) / "tests/mocks/mock_commands.py"
temp_commands_file = tmp_path / "mock_commands.py"
shutil.copyfile(src, temp_commands_file)