feat: Audio tab QToolBox — Extract & Edit + Scan/Classify panes
This commit is contained in:
@@ -53,7 +53,7 @@ def test_workers_spinbox_in_export_tab(win):
|
||||
assert win._spn_workers in win._tab_export.findChildren(QSpinBox)
|
||||
|
||||
|
||||
def test_scan_button_in_scan_tab(win):
|
||||
def test_scan_button_in_audio_tab(win):
|
||||
from PyQt6.QtWidgets import QPushButton
|
||||
assert win._btn_scan in win._tab_audio.findChildren(QPushButton)
|
||||
|
||||
@@ -295,3 +295,16 @@ def test_audio_edit_widgets_exist(win):
|
||||
assert win._cmb_audio_fmt.findData(".wav") >= 0
|
||||
assert win._cmb_audio_fmt.findData(".mp3") >= 0
|
||||
assert win._cmb_audio_fmt.findData(".flac") >= 0
|
||||
|
||||
|
||||
def test_audio_toolbox_has_two_panes(win):
|
||||
from PyQt6.QtWidgets import QToolBox, QPushButton
|
||||
tb = win._tab_audio.findChild(QToolBox)
|
||||
assert tb is not None
|
||||
titles = [tb.itemText(i) for i in range(tb.count())]
|
||||
assert titles[0].startswith("Extract")
|
||||
assert any("Scan" in t or "Classify" in t for t in titles)
|
||||
# Extract controls now live under the Audio tab.
|
||||
assert win._btn_extract_audio in tb.findChildren(QPushButton)
|
||||
# Scan controls remain reachable.
|
||||
assert win._btn_scan in tb.findChildren(QPushButton)
|
||||
|
||||
Reference in New Issue
Block a user