Explorar o código

tests: Update audio test to recognize missing sounds as NullAudioSound

Sam Edwards %!s(int64=7) %!d(string=hai) anos
pai
achega
7aedc21510
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      tests/audio/test_loading.py

+ 1 - 2
tests/audio/test_loading.py

@@ -1,6 +1,5 @@
 import pytest
 
[email protected]
 def test_missing_file(audiomgr):
     sound = audiomgr.get_sound('/not/a/valid/file.ogg')
-    assert sound is None
+    assert str(sound).startswith('NullAudioSound')