16 lines
454 B
Python
16 lines
454 B
Python
import pytest
|
|
import inspect
|
|
from src import gui_2
|
|
|
|
def test_takes_tab_replaces_placeholder():
|
|
import src.gui_2 as gui_2
|
|
|
|
source = inspect.getsource(gui_2.App._gui_func)
|
|
assert "_render_takes_placeholder" not in source, "Placeholder should be replaced"
|
|
|
|
def test_takes_panel_has_synthesis():
|
|
import src.gui_2 as gui_2
|
|
|
|
source = inspect.getsource(gui_2.render_takes_panel)
|
|
assert "synthesis" in source.lower(), "Should have synthesis functionality"
|