diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a404a02..39cf61a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,6 +36,8 @@ test: - apt install xvfb - Xvfb :119 -screen 0 1024x768x16 & - export DISPLAY=:119 + - pulseaudio -D --system --exit-idle-time=-1 + - pactl load-module module-null-sink sink_name=DummyOutput sink_properties=device.description="Virtual_Dummy_Output" script: - pipenv run ./cicd/pytest.sh artifacts: diff --git a/Pipfile.lock b/Pipfile.lock index e06d54f..cb31dc9 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -431,7 +431,7 @@ "sha256:e1ea316102ea1e1770724db01998d1603ed921c54a86a2efcb03428d5417e489", "sha256:f90bfc4ad18450c80b024036eaf91e4a246ae287701aaa88eaebebf150868052" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_full_version < '4.0.0'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==5.1" }, "docutils": { @@ -617,11 +617,11 @@ }, "more-itertools": { "hashes": [ - "sha256:558bb897a2232f5e4f8e2399089e35aecb746e1f9191b6584a151647e89267be", - "sha256:7818f596b1e87be009031c7653d01acc46ed422e6656b394b0f765ce66ed4982" + "sha256:68c70cc7167bdf5c7c9d8f6954a7837089c6a36bf565383919bb595efb8a17e5", + "sha256:b78134b2063dd214000685165d81c154522c3ee0a1c0d4d113c80361c234c5a2" ], "markers": "python_version >= '3.5'", - "version": "==8.3.0" + "version": "==8.4.0" }, "mypy": { "hashes": [ @@ -723,11 +723,11 @@ }, "pytest-cov": { "hashes": [ - "sha256:b6a814b8ed6247bd81ff47f038511b57fe1ce7f4cc25b9106f1a4b106f1d9322", - "sha256:c87dfd8465d865655a8213859f1b4749b43448b5fae465cb981e16d52a811424" + "sha256:1a629dc9f48e53512fcbfda6b07de490c374b0c83c55ff7a1720b3fccff0ac87", + "sha256:6e6d18092dce6fad667cd7020deed816f858ad3b49d5b5e2b1cc1c97a4dba65c" ], "index": "pypi", - "version": "==2.9.0" + "version": "==2.10.0" }, "pytz": { "hashes": [ @@ -801,11 +801,11 @@ }, "sphinx": { "hashes": [ - "sha256:1c445320a3310baa5ccb8d957267ef4a0fc930dc1234db5098b3d7af14fbb242", - "sha256:7d3d5087e39ab5a031b75588e9859f011de70e213cd0080ccbc28079fb0786d1" + "sha256:74fbead182a611ce1444f50218a1c5fc70b6cc547f64948f5182fb30a2a20258", + "sha256:97c9e3bcce2f61d9f5edf131299ee9d1219630598d9f9a8791459a4d9e815be5" ], "index": "pypi", - "version": "==3.1.0" + "version": "==3.1.1" }, "sphinx-rtd-theme": { "hashes": [ diff --git a/tests/player_tests/chromecast_tests.py b/tests/player_tests/chromecast_tests.py index 522b2de..fbd3e96 100644 --- a/tests/player_tests/chromecast_tests.py +++ b/tests/player_tests/chromecast_tests.py @@ -3,7 +3,7 @@ from sublime.players.chromecast import ChromecastPlayer def test_init(): empty_fn = lambda *a, **k: None - ChromecastPlayer( + chromecast_player = ChromecastPlayer( empty_fn, empty_fn, empty_fn, @@ -13,3 +13,4 @@ def test_init(): "LAN Server Port Number": 6969, }, ) + chromecast_player.shutdown() diff --git a/tests/player_tests/mpv_tests.py b/tests/player_tests/mpv_tests.py index 3956eca..865b01a 100644 --- a/tests/player_tests/mpv_tests.py +++ b/tests/player_tests/mpv_tests.py @@ -66,3 +66,4 @@ def test_play(): # Pause so that it doesn't keep playing while testing mpv_player.pause() + mpv_player.shutdown()