Skip to content

Commit ab32189

Browse files
committed
[tests] feat: mark tests which require a running JACK server
Signed-off-by: Christopher Arndt <[email protected]>
1 parent a1aecf9 commit ab32189

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ add_ignore = [
8181
[tool.pytest.ini_options]
8282
markers = [
8383
"ci: marks tests to run as part of the CI builds",
84+
"jack: marks tests requiring a running JACK server",
8485
]
8586

8687
[tool.cibuildwheel]

tests/test_rtmidi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import time
55
import unittest
66

7+
import pytest
8+
79
import rtmidi
810

911

@@ -181,6 +183,7 @@ class ALSATestCase(BaseTests, SetPortNameSupportedTests, SetClientNameSupportedT
181183

182184

183185
if rtmidi.API_UNIX_JACK in rtmidi.get_compiled_api():
186+
@pytest.mark.jack
184187
class JACKTestCase(BaseTests, SetPortNameSupportedTests, SetClientNameUnsupportedTests,
185188
VirtualPortsSupportedTests, unittest.TestCase):
186189
API = rtmidi.API_UNIX_JACK

0 commit comments

Comments
 (0)