Skip to content

Commit

Permalink
The New Computer Update (config upgrade)
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Dec 27, 2023
1 parent 331f60f commit 9e71f62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pytest

import interpreter
from interpreter.terminal_interface.utils.apply_config import apply_config
from interpreter.terminal_interface.utils.count_tokens import (
count_messages_tokens,
count_tokens,
Expand Down Expand Up @@ -158,14 +159,15 @@ def test_spotlight():
interpreter.computer.keyboard.hotkey("command", "space")


@pytest.mark.skip(reason="We no longer test")
def test_config_loading():
# because our test is running from the root directory, we need to do some
# path manipulation to get the actual path to the config file or our config
# loader will try to load from the wrong directory and fail
currentPath = os.path.dirname(os.path.abspath(__file__))
config_path = os.path.join(currentPath, "./config.test.yaml")

interpreter.extend_config(config_path=config_path)
interpreter = apply_config(interpreter, config_path=config_path)

# check the settings we configured in our config.test.yaml file
temperature_ok = interpreter.llm.temperature == 0.25
Expand Down

0 comments on commit 9e71f62

Please sign in to comment.