FUCK PYTHON
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import cost_tracker
|
from src import cost_tracker
|
||||||
|
|
||||||
def test_estimate_cost():
|
def test_estimate_cost():
|
||||||
# Test unknown model
|
# Test unknown model
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
def test_gui2_hubs_exist_in_show_windows(app_instance: App) -> None:
|
def test_gui2_hubs_exist_in_show_windows(app_instance: App) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from typing import Any
|
|||||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
||||||
|
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
def test_telemetry_data_updates_correctly(app_instance: Any) -> None:
|
def test_telemetry_data_updates_correctly(app_instance: Any) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import os
|
|||||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
||||||
|
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
def test_new_hubs_defined_in_show_windows(mock_app: App) -> None:
|
def test_new_hubs_defined_in_show_windows(mock_app: App) -> None:
|
||||||
"""
|
"""
|
||||||
@@ -40,7 +40,7 @@ def test_old_windows_removed_from_gui2(app_instance_simple: Any) -> None:
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def app_instance_simple() -> Any:
|
def app_instance_simple() -> Any:
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
with patch('src.models.load_config', return_value={'ai': {}, 'projects': {}, 'gui': {'show_windows': {}}}), \
|
with patch('src.models.load_config', return_value={'ai': {}, 'projects': {}, 'gui': {'show_windows': {}}}), \
|
||||||
patch('src.app_controller.AppController._init_ai_and_hooks'), \
|
patch('src.app_controller.AppController._init_ai_and_hooks'), \
|
||||||
patch('src.app_controller.AppController._fetch_models'), \
|
patch('src.app_controller.AppController._fetch_models'), \
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from unittest.mock import MagicMock, patch
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# We can safely import gui_2 if we don't instantiate App without mocking its threads
|
# We can safely import gui_2 if we don't instantiate App without mocking its threads
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_config(tmp_path: Path) -> Path:
|
def mock_config(tmp_path: Path) -> Path:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from unittest.mock import patch, MagicMock
|
from unittest.mock import patch, MagicMock
|
||||||
|
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
|
|
||||||
def _make_app(**kwargs):
|
def _make_app(**kwargs):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from unittest.mock import patch, MagicMock
|
from unittest.mock import patch, MagicMock
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from unittest.mock import patch, MagicMock
|
from unittest.mock import patch, MagicMock
|
||||||
|
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
|
|
||||||
def _make_app(**kwargs):
|
def _make_app(**kwargs):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
import time
|
import time
|
||||||
from gui_2 import App
|
from src.gui_2 import App
|
||||||
|
|
||||||
def test_mma_ui_state_initialization(app_instance: App) -> None:
|
def test_mma_ui_state_initialization(app_instance: App) -> None:
|
||||||
"""Verifies that the new MMA UI state variables are initialized correctly."""
|
"""Verifies that the new MMA UI state variables are initialized correctly."""
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from mma_prompts import PROMPTS
|
from src.mma_prompts import PROMPTS
|
||||||
|
|
||||||
def test_tier1_epic_init_constraints() -> None:
|
def test_tier1_epic_init_constraints() -> None:
|
||||||
prompt = PROMPTS["tier1_epic_init"]
|
prompt = PROMPTS["tier1_epic_init"]
|
||||||
|
|||||||
Reference in New Issue
Block a user