feat: read-only waveform strip + manual refresh in the Audio tab
This commit is contained in:
@@ -372,3 +372,17 @@ def test_extract_no_edits_passes_no_filters(win, monkeypatch, tmp_path):
|
||||
with pytest.raises(_Stop):
|
||||
win._on_extract_audio()
|
||||
assert seen["filters"] is None
|
||||
|
||||
|
||||
def test_waveform_strip_present_and_safe(win):
|
||||
from PyQt6.QtWidgets import QPushButton
|
||||
assert win._wave is not None
|
||||
assert isinstance(win._btn_wave_refresh, QPushButton)
|
||||
# set_peaks stores + doesn't crash
|
||||
win._wave.set_peaks([0.1, 0.5, 0.9])
|
||||
assert list(win._wave._peaks) == [0.1, 0.5, 0.9]
|
||||
win._wave.clear()
|
||||
assert win._wave._peaks == []
|
||||
# refresh with no file loaded is a safe no-op
|
||||
win._file_path = ""
|
||||
win._on_wave_refresh()
|
||||
|
||||
Reference in New Issue
Block a user