From ad8c0e208ba3e50bc6d1f03a0286315ec81eb084 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 23 Feb 2026 16:53:08 -0500 Subject: [PATCH] fix: Add sys.path to tests/test_gui_updates.py to resolve aggregate import --- tests/test_gui_updates.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_gui_updates.py b/tests/test_gui_updates.py index e39bfae..03e10b1 100644 --- a/tests/test_gui_updates.py +++ b/tests/test_gui_updates.py @@ -2,8 +2,12 @@ import pytest from unittest.mock import patch, MagicMock import importlib.util import sys +import os import dearpygui.dearpygui as dpg +# Ensure project root is in path for imports +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) + # Load gui.py as a module for testing spec = importlib.util.spec_from_file_location("gui", "gui.py") gui = importlib.util.module_from_spec(spec)