From 689ab763f2961840947f519d86d7bf9451ce99ea Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Thu, 18 Jul 2024 20:41:29 +0200 Subject: [PATCH] test for device name not being NULL --- tests/test_miniaudio.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_miniaudio.py b/tests/test_miniaudio.py index ca4b135..b3b55a4 100644 --- a/tests/test_miniaudio.py +++ b/tests/test_miniaudio.py @@ -9,8 +9,10 @@ def dummy_generator(): def test_devices(): devs = miniaudio.Devices() - devs.get_playbacks() - devs.get_captures() + # devs.get_playbacks() + # devs.get_captures() + assert( not (devs.get_playbacks()[0]["name"].startswith("NULL") ) and + not (devs.get_captures()[0]["name"].startswith("NULL"))) # The device stop callback doesn't work consistently,