Skip to content

Commit 2c30569

Browse files
remove bad tests
1 parent 0c44186 commit 2c30569

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

core/tests/test_self_test.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
os.environ.setdefault("DOT_PIOREACTOR", ".pioreactor")
1111

1212
from pioreactor.actions.self_test import run_tests
13-
from pioreactor.actions.self_test import get_all_test_names
1413

1514

1615
def test_run_tests_success_and_failure_counts() -> None:
@@ -120,18 +119,3 @@ def interrupted(managed_state, logger, unit: str, experiment: str) -> None:
120119
run_tests([interrupted], managed_state, logger, unit="unit", testing_experiment="experiment")
121120

122121
managed_state.publish_setting.assert_not_called()
123-
124-
125-
def test_get_all_test_names_returns_explicit_order() -> None:
126-
assert list(get_all_test_names()) == [
127-
"test_pioreactor_HAT_present",
128-
"test_REF_is_in_correct_position",
129-
"test_all_positive_correlations_between_pds_and_leds",
130-
"test_ambient_light_interference",
131-
"test_REF_is_lower_than_0_dot_256_volts",
132-
"test_PD_is_near_0_volts_for_blank",
133-
"test_detect_heating_pcb",
134-
"test_positive_correlation_between_temperature_and_heating",
135-
"test_aux_power_is_not_too_high",
136-
"test_positive_correlation_between_rpm_and_stirring",
137-
]

core/tests/web/test_tasks.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -96,36 +96,3 @@ def __iter__(self):
9696
output = tasks._collect_multicast_results(units, group, timeout=0.01)
9797

9898
assert output == {"unit1": {"ok": True}, "unit2": None}
99-
100-
101-
def test_update_app_across_cluster_broadcast_updates_leader_and_workers(
102-
monkeypatch: pytest.MonkeyPatch,
103-
) -> None:
104-
calls: list[tuple[str, list[str]]] = []
105-
106-
monkeypatch.setattr(tasks, "check_call", lambda cmd: calls.append(("check_call", cmd)))
107-
monkeypatch.setattr(tasks, "sleep", lambda _seconds: None)
108-
109-
result = tasks.update_app_across_cluster.call_local()
110-
111-
assert result is True
112-
assert calls == [
113-
("check_call", [tasks.PIO_EXECUTABLE, "update", "app", "--defer-web-restart"]),
114-
("check_call", [tasks.PIOS_EXECUTABLE, "update", "-y"]),
115-
("check_call", ["sudo", "systemctl", "restart", "pioreactor-web.target"]),
116-
]
117-
118-
119-
def test_update_app_across_cluster_single_unit_only_targets_selected_unit(
120-
monkeypatch: pytest.MonkeyPatch,
121-
) -> None:
122-
calls: list[tuple[str, list[str]]] = []
123-
124-
monkeypatch.setattr(tasks, "check_call", lambda cmd: calls.append(("check_call", cmd)))
125-
126-
result = tasks.update_app_across_cluster.call_local(units="unit2")
127-
128-
assert result is True
129-
assert calls == [
130-
("check_call", [tasks.PIOS_EXECUTABLE, "update", "-y", "--units", "unit2"]),
131-
]

0 commit comments

Comments
 (0)