Skip to content

Commit

Permalink
skip tests in GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pozitronik committed Feb 27, 2024
1 parent d5f9e31 commit 5b3bafc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/audio/test_pygame_audio_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def test_init_default() -> None:


def test_init_parameters() -> None:
if 'CI' in os.environ:
pytest.skip("Sound can not be initialized in GitHub CI")
params: Namespace = Parameters(f'--temp_dir="{tmp_dir}"').parameters
backend = PygameAudioBackend(params, target_mp4)
assert backend._temp_dir == os.path.join(tmp_dir, 'extracted_audio')
Expand All @@ -36,6 +38,8 @@ def test_init_parameters() -> None:


def test_on_silent(capsys) -> None:
if 'CI' in os.environ:
pytest.skip("Sound can not be initialized in GitHub CI")
params: Namespace = Parameters(f'--temp_dir="{tmp_dir}"').parameters
PygameAudioBackend(params, silent_target_mp4)
captured = capsys.readouterr()
Expand Down

0 comments on commit 5b3bafc

Please sign in to comment.