|
14 | 14 | import pytest |
15 | 15 |
|
16 | 16 | import can |
17 | | -from can.interfaces.vector import canlib, xldefine, xlclass, VectorError |
| 17 | +from can.interfaces.vector import ( |
| 18 | + canlib, |
| 19 | + xldefine, |
| 20 | + xlclass, |
| 21 | + VectorError, |
| 22 | + VectorChannelConfig, |
| 23 | +) |
18 | 24 |
|
19 | 25 |
|
20 | 26 | class TestVectorBus(unittest.TestCase): |
@@ -296,6 +302,23 @@ def test_vector_error_pickle(self) -> None: |
296 | 302 | raise exc_unpickled |
297 | 303 |
|
298 | 304 |
|
| 305 | +class TestVectorChannelConfig: |
| 306 | + def test_attributes(self): |
| 307 | + assert hasattr(VectorChannelConfig, "name") |
| 308 | + assert hasattr(VectorChannelConfig, "hwType") |
| 309 | + assert hasattr(VectorChannelConfig, "hwIndex") |
| 310 | + assert hasattr(VectorChannelConfig, "hwChannel") |
| 311 | + assert hasattr(VectorChannelConfig, "channelIndex") |
| 312 | + assert hasattr(VectorChannelConfig, "channelMask") |
| 313 | + assert hasattr(VectorChannelConfig, "channelCapabilities") |
| 314 | + assert hasattr(VectorChannelConfig, "channelBusCapabilities") |
| 315 | + assert hasattr(VectorChannelConfig, "isOnBus") |
| 316 | + assert hasattr(VectorChannelConfig, "connectedBusType") |
| 317 | + assert hasattr(VectorChannelConfig, "serialNumber") |
| 318 | + assert hasattr(VectorChannelConfig, "articleNumber") |
| 319 | + assert hasattr(VectorChannelConfig, "transceiverName") |
| 320 | + |
| 321 | + |
299 | 322 | def xlGetApplConfig( |
300 | 323 | app_name_p: ctypes.c_char_p, |
301 | 324 | app_channel: ctypes.c_uint, |
|
0 commit comments