|
|
@@ -47,35 +47,54 @@ class ModUiPipeWireTests(unittest.TestCase):
|
|
|
}[port]
|
|
|
|
|
|
def test_maps_only_rigforge_boundary_edges_to_pipewire_ports(self):
|
|
|
- capture = "rigforge.mod-host-input.capture:capture_AUX0"
|
|
|
- playback = "rigforge.mod-host-output.playback:playback_AUX0"
|
|
|
+ captures = {
|
|
|
+ "capture_1": "rigforge.mod-host-input.capture:capture_AUX0",
|
|
|
+ "capture_2": "rigforge.mod-host-input.capture:capture_AUX1",
|
|
|
+ "capture_3": "rigforge.mod-host-input.capture:capture_AUX2",
|
|
|
+ "capture_4": "rigforge.mod-host-input.capture:capture_AUX3",
|
|
|
+ }
|
|
|
+ playbacks = {
|
|
|
+ "playback_1": "rigforge.mod-host-output.playback:playback_AUX0",
|
|
|
+ "playback_2": "rigforge.mod-host-output.playback:playback_AUX1",
|
|
|
+ "playback_3": "rigforge.mod-host-output.playback:playback_AUX2",
|
|
|
+ "playback_4": "rigforge.mod-host-output.playback:playback_AUX3",
|
|
|
+ }
|
|
|
|
|
|
self.assertEqual(
|
|
|
boundary_connection(
|
|
|
"/graph/capture_1",
|
|
|
"/graph/rigforge_nam/input",
|
|
|
- capture,
|
|
|
- playback,
|
|
|
+ captures,
|
|
|
+ playbacks,
|
|
|
self.resolve,
|
|
|
),
|
|
|
- (capture, "effect_0:input"),
|
|
|
+ (captures["capture_1"], "effect_0:input"),
|
|
|
)
|
|
|
self.assertEqual(
|
|
|
boundary_connection(
|
|
|
"/graph/rigforge_ir/out",
|
|
|
- "/graph/playback_1",
|
|
|
- capture,
|
|
|
- playback,
|
|
|
+ "/graph/playback_4",
|
|
|
+ captures,
|
|
|
+ playbacks,
|
|
|
self.resolve,
|
|
|
),
|
|
|
- ("effect_1:out", playback),
|
|
|
+ ("effect_1:out", playbacks["playback_4"]),
|
|
|
)
|
|
|
self.assertIsNone(
|
|
|
boundary_connection(
|
|
|
"/graph/rigforge_nam/output",
|
|
|
"/graph/rigforge_ir/in",
|
|
|
- capture,
|
|
|
- playback,
|
|
|
+ captures,
|
|
|
+ playbacks,
|
|
|
+ self.resolve,
|
|
|
+ )
|
|
|
+ )
|
|
|
+ self.assertIsNone(
|
|
|
+ boundary_connection(
|
|
|
+ "/graph/capture_5",
|
|
|
+ "/graph/rigforge_ir/in",
|
|
|
+ captures,
|
|
|
+ playbacks,
|
|
|
self.resolve,
|
|
|
)
|
|
|
)
|