tests: Add xfail test for loading a missing audio file

This commit is contained in:
Sam Edwards 2018-02-19 19:15:02 -07:00
parent 68b1ecfd32
commit bc88566906
2 changed files with 12 additions and 0 deletions

6
tests/audio/conftest.py Normal file
View File

@ -0,0 +1,6 @@
import pytest
from panda3d.core import *
@pytest.fixture(scope='module')
def audiomgr():
return AudioManager.create_AudioManager()

View 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