Skip to content

Commit

Permalink
Is the default device name empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
psobot committed Aug 22, 2024
1 parent 9594e25 commit 658c1e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_audio_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def test_create_stream(input_device_name: str, output_device_name: str):
@pytest.mark.skipif(
(
pedalboard.io.AudioStream.default_output_device_name == "Null Audio Device"
or pedalboard.io.AudioStream.default_output_device_name is None
or not pedalboard.io.AudioStream.default_output_device_name
),
reason="Tests do not work with a null audio device.",
reason="Test requires a working audio device.",
)
def test_write_to_stream():
try:
Expand All @@ -98,9 +98,9 @@ def test_write_to_stream():
@pytest.mark.skipif(
(
pedalboard.io.AudioStream.default_output_device_name == "Null Audio Device"
or pedalboard.io.AudioStream.default_output_device_name is None
or not pedalboard.io.AudioStream.default_output_device_name
),
reason="Tests do not work with a null audio device.",
reason="Test requires a working audio device.",
)
def test_write_to_stream_without_opening():
try:
Expand All @@ -124,9 +124,9 @@ def test_write_to_stream_without_opening():
@pytest.mark.skipif(
(
pedalboard.io.AudioStream.default_input_device_name == "Null Audio Device"
or pedalboard.io.AudioStream.default_input_device_name is None
or not pedalboard.io.AudioStream.default_input_device_name
),
reason="Tests do not work with a null audio device.",
reason="Test requires a working audio device.",
)
def test_read_from_stream():
try:
Expand All @@ -149,9 +149,9 @@ def test_read_from_stream():
@pytest.mark.skipif(
(
pedalboard.io.AudioStream.default_input_device_name == "Null Audio Device"
or pedalboard.io.AudioStream.default_input_device_name is None
or not pedalboard.io.AudioStream.default_input_device_name
),
reason="Tests do not work with a null audio device.",
reason="Test requires a working audio device.",
)
def test_read_from_stream_measures_dropped_frames():
try:
Expand Down

0 comments on commit 658c1e6

Please sign in to comment.