Skip to content

Commit 2c96ba5

Browse files
committed
Remove librosa references
1 parent 172d383 commit 2c96ba5

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Refer to the individual markdown files for usage details and examples of each no
5757
pytest -q
5858
```
5959

60-
Most tests run without network access. Some optional features may require additional libraries such as `librosa`.
60+
Most tests run without network access.
6161

6262
## Contributing
6363

tests/nodetool/test_transform.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from unittest.mock import AsyncMock, MagicMock, patch
55
from pydub import AudioSegment
66

7-
from nodetool.metadata.types import AudioRef, NPArray
7+
from nodetool.metadata.types import AudioRef
88
from nodetool.workflows.processing_context import ProcessingContext
99
from nodetool.nodes.nodetool.audio import (
1010
Concat,
@@ -13,7 +13,6 @@
1313
OverlayAudio,
1414
RemoveSilence,
1515
SliceAudio,
16-
Tone,
1716
MonoToStereo,
1817
StereoToMono,
1918
Reverse,
@@ -240,25 +239,6 @@ async def test_slice_audio(self, mock_context, audio_segment_mono):
240239
# but we can verify that the audio_from_segment was called
241240

242241

243-
class TestTone:
244-
@pytest.mark.asyncio
245-
async def test_tone_generation(self, mock_context):
246-
"""Test that Tone correctly generates a tone signal."""
247-
# Setup
248-
node = Tone(frequency=440.0, sampling_rate=44100, duration=1.0, phi=0.0)
249-
250-
# Execute
251-
with patch("librosa.tone") as mock_tone:
252-
mock_tone.return_value = np.zeros(44100)
253-
result = await node.process(mock_context)
254-
255-
# Verify
256-
assert isinstance(result, NPArray)
257-
mock_tone.assert_called_once_with(
258-
frequency=440.0, sr=44100, length=44100, phi=0.0
259-
)
260-
261-
262242
class TestMonoToStereo:
263243
@pytest.mark.asyncio
264244
async def test_mono_to_stereo_conversion(self, mock_context, audio_segment_mono):

0 commit comments

Comments
 (0)