def test_find_available_interfaces(self): result = list(find_available_interfaces()) self.assertGreaterEqual(len(result), 0) for entry in result: self.assertRegex(entry, r"v?can\d+") if TEST_INTERFACE_SOCKETCAN: self.assertGreaterEqual(len(result), 1) self.assertIn("vcan0", result)
def test_find_available_interfaces(self): result = list(find_available_interfaces()) self.assertGreaterEqual(len(result), 0) for entry in result: self.assertRegexpMatches(entry, r"v?can\d+") if IS_CI: self.assertGreaterEqual(len(result), 1) self.assertIn("vcan0", result)
def test_find_available_interfaces(self): result = list(find_available_interfaces()) self.assertGreaterEqual(len(result), 0) for entry in result: self.assertRegexpMatches(entry, r"v?can\d+") if IS_CI: self.assertGreaterEqual(len(result), 1) self.assertIn("vcan0", result)
def _detect_available_configs(): return [{ 'interface': 'socketcan', 'channel': channel } for channel in find_available_interfaces()]
def _detect_available_configs(): return [{'interface': 'socketcan', 'channel': channel} for channel in find_available_interfaces()]
def _detect_available_configs( ) -> List[can.typechecking.AutoDetectedConfig]: return [{ "interface": "socketcan", "channel": channel } for channel in find_available_interfaces()]