mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
tests: Add xfail test for loading a missing audio file
This commit is contained in:
parent
68b1ecfd32
commit
bc88566906
6
tests/audio/conftest.py
Normal file
6
tests/audio/conftest.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import pytest
|
||||||
|
from panda3d.core import *
|
||||||
|
|
||||||
|
@pytest.fixture(scope='module')
|
||||||
|
def audiomgr():
|
||||||
|
return AudioManager.create_AudioManager()
|
6
tests/audio/test_loading.py
Normal file
6
tests/audio/test_loading.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
@pytest.mark.xfail
|
||||||
|
def test_missing_file(audiomgr):
|
||||||
|
sound = audiomgr.get_sound('/not/a/valid/file.ogg')
|
||||||
|
assert sound is None
|
Loading…
x
Reference in New Issue
Block a user