Skip to content

Commit

Permalink
TST: mark more tests that require motorsim to be running
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Nov 21, 2024
1 parent 5d104a1 commit 0e45931
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ophyd/tests/test_issue944.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
echo "pytest_plugins = 'pytester'" >> conftest.py
"""
import pytest

from .config import motor_recs

Expand All @@ -22,6 +23,7 @@ def run_test_code(testdir, code):
result.stdout.fnmatch_lines(["* 1 passed*"])


@pytest.mark.motorsim
def test_local_without_defaults_no_string(testdir):
from ophyd import EpicsSignal

Expand All @@ -32,6 +34,7 @@ def test_local_without_defaults_no_string(testdir):
assert desc["signal"]["dtype"] == "integer"


@pytest.mark.motorsim
def test_without_defaults_no_string(testdir):
run_test_code(
testdir,
Expand All @@ -51,6 +54,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_without_defaults_as_string(testdir):
run_test_code(
testdir,
Expand All @@ -70,6 +74,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_with_all_defaults_no_string(testdir):
run_test_code(
testdir,
Expand All @@ -96,6 +101,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_with_all_defaults_as_string(testdir):
run_test_code(
testdir,
Expand Down Expand Up @@ -123,6 +129,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_with_all_defaults_auto_monitor(testdir):
run_test_code(
testdir,
Expand All @@ -147,6 +154,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_with_all_defaults_connection_timeout(testdir):
run_test_code(
testdir,
Expand All @@ -171,6 +179,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_with_all_defaults_timeout(testdir):
run_test_code(
testdir,
Expand All @@ -195,6 +204,7 @@ def test_without_defaults_no_string():
)


@pytest.mark.motorsim
def test_with_all_defaults_write_timeout(testdir):
run_test_code(
testdir,
Expand Down

0 comments on commit 0e45931

Please sign in to comment.