Skip to content

Commit b987b18

Browse files
committed
tests: patch ros_version
1 parent 0fabfa9 commit b987b18

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ def fake_check_output(cmd, *a, **k):
7575
"manager.manager.manager.check_gpu_acceleration", lambda x=None: "OFF"
7676
)
7777

78+
# Patch get_ros_version
79+
monkeypatch.setattr(
80+
"manager.libs.process_utils.get_ros_version",
81+
lambda: "humble" # change if needed
82+
)
83+
7884
# Patch os.makedirs and os.path.isdir to avoid real FS operations
7985
monkeypatch.setattr("os.makedirs", lambda path, exist_ok=False: None)
8086
monkeypatch.setattr("os.path.isdir", lambda path: True)

0 commit comments

Comments
 (0)