Skip to content

Commit

Permalink
Add test for nperiods
Browse files Browse the repository at this point in the history
  • Loading branch information
vrslev committed Jan 31, 2024
1 parent 59dd4aa commit 5702e60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_driver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import pytest

from jack_server import Server
Expand All @@ -10,3 +12,11 @@
def test_driver_properties(driver: str, name: str, value: str, param_value: str):
server = Server(driver=driver)
check_property(server.driver, name, value, param_value)


@pytest.mark.skipif(
sys.platform != "linux", reason="nperiods is only supported on Linux"
)
def test_driver_nperiods():
server = Server(driver="alsa", nperiods=2)
check_property(server.driver, name="nperiods", value=2, param_value=2)

0 comments on commit 5702e60

Please sign in to comment.