mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-20 15:34:23 +01:00
Fix test
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import shutil
|
import shutil
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@@ -155,7 +156,7 @@ class TestCommandRegistry:
|
|||||||
registry = CommandRegistry()
|
registry = CommandRegistry()
|
||||||
|
|
||||||
# Create a temp command file
|
# 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"
|
temp_commands_file = tmp_path / "mock_commands.py"
|
||||||
shutil.copyfile(src, temp_commands_file)
|
shutil.copyfile(src, temp_commands_file)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user