From 0e45931af0974f684f1813c673bcf5cafe7d2499 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 21 Nov 2024 14:16:25 -0500 Subject: [PATCH] TST: mark more tests that require motorsim to be running --- ophyd/tests/test_issue944.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ophyd/tests/test_issue944.py b/ophyd/tests/test_issue944.py index ef8bbd0ab..12cb1b7d3 100755 --- a/ophyd/tests/test_issue944.py +++ b/ophyd/tests/test_issue944.py @@ -10,6 +10,7 @@ echo "pytest_plugins = 'pytester'" >> conftest.py """ +import pytest from .config import motor_recs @@ -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 @@ -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, @@ -51,6 +54,7 @@ def test_without_defaults_no_string(): ) +@pytest.mark.motorsim def test_without_defaults_as_string(testdir): run_test_code( testdir, @@ -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, @@ -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, @@ -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, @@ -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, @@ -171,6 +179,7 @@ def test_without_defaults_no_string(): ) +@pytest.mark.motorsim def test_with_all_defaults_timeout(testdir): run_test_code( testdir, @@ -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,