diff --git a/test/error_test.py b/test/error_test.py index a2f8b42..9085a96 100644 --- a/test/error_test.py +++ b/test/error_test.py @@ -2,7 +2,7 @@ """ >>> import os >>> import sys ->>> from nava import play, stop +>>> from nava import play, stop, Engine >>> test_sound_path = os.path.join("others", "test.wav") >>> play("test.wav") Traceback (most recent call last): @@ -26,20 +26,11 @@ nava.errors.NavaBaseError: `engine` type must be `Engine` enum. >>> sys_platform = sys.platform >>> if sys_platform == "win32": -... sound_id = nava.play(test_sound_path, async_mode=False, engine=nava.Engine.AFPLAY) +... sound_id = play(test_sound_path, async_mode=False, engine=Engine.AFPLAY) ... elif sys_platform == "darwin": -... sound_id = nava.play(test_sound_path, async_mode=False, engine=nava.Engine.WINSOUND) +... sound_id = play(test_sound_path, async_mode=False, engine=Engine.WINSOUND) ... else: -... sound_id = nava.play(test_sound_path, async_mode=False, engine=nava.Engine.WINSOUND) -Traceback (most recent call last): - ... -nava.errors.NavaBaseError: Sound can not play due to some issues. ->>> if sys_platform == "win32": -... sound_id = nava.play(test_sound_path, async_mode=True, engine=nava.Engine.AFPLAY) -... elif sys_platform == "darwin": -... sound_id = nava.play(test_sound_path, async_mode=True, engine=nava.Engine.WINSOUND) -... else: -... sound_id = nava.play(test_sound_path, async_mode=True, engine=nava.Engine.WINSOUND) +... sound_id = play(test_sound_path, async_mode=False, engine=Engine.WINSOUND) Traceback (most recent call last): ... nava.errors.NavaBaseError: Sound can not play due to some issues.