Files
manual_slop/tests/test_project_settings_rename.py
T
ed 746772557d test: Fix test_project_settings_rename source inspection
Updated the test to inspect _render_main_interface instead of _gui_func as window rendering was refactored.
2026-05-14 20:10:49 -04:00

23 lines
739 B
Python

import pytest
import inspect
def test_context_hub_renamed_to_project_settings():
import src.gui_2 as gui_2
source = inspect.getsource(gui_2.App._render_main_interface)
assert "Project Settings" in source, (
"Context Hub should be renamed to Project Settings"
)
assert '"Context Hub"' not in source, '"Context Hub" string should be removed'
def test_show_windows_key_updated():
import src.app_controller as app_controller
source = inspect.getsource(app_controller.AppController)
assert '"Project Settings"' in source or "'Project Settings'" in source, (
"show_windows key should be Project Settings"
)
assert '"Context Hub"' not in source, '"Context Hub" key should be removed'