fix: Add sys.path to tests/test_gui_updates.py to resolve aggregate import
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user