File: test_ci_wheels.py

package info (click to toggle)
python-rtmidi 1.5.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,248 kB
  • sloc: cpp: 4,228; python: 2,853; makefile: 287; sh: 109; ansic: 19
file content (31 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Tests for wheels built by CI."""

import sys

import pytest

import rtmidi


@pytest.mark.ci
@pytest.mark.skipif(not sys.platform.lower().startswith("linux"), reason="requires Linux OS")
def test_linux_supports_alsa():
    assert rtmidi.API_LINUX_ALSA in rtmidi.get_compiled_api()


@pytest.mark.ci
@pytest.mark.skipif(not sys.platform.lower().startswith("linux"), reason="requires Linux OS")
def test_linux_supports_jack():
    assert rtmidi.API_UNIX_JACK in rtmidi.get_compiled_api()


@pytest.mark.ci
@pytest.mark.skipif(not sys.platform.lower().startswith("darwin"), reason="requires macOS")
def test_macos_supports_coremidi():
    assert rtmidi.API_MACOSX_CORE in rtmidi.get_compiled_api()


@pytest.mark.ci
@pytest.mark.skipif(not sys.platform.lower().startswith("win"), reason="requires Windows OS")
def test_windows_supports_winmm():
    assert rtmidi.API_WINDOWS_MM in rtmidi.get_compiled_api()