Commit daf2900
Update tests to require X Series device with 32 DIO lines (#753)
* Update tests to require X Series device with 32 DIO lines
Tests and fixtures now require a real X Series device with at least 32 digital I/O lines, using the new real_x_series_device_32dio fixture. The _x_series_device helper accepts a line_number parameter for flexible device selection. Minor formatting and assertion changes included.
* ni-python-styleguide fix and black src
* fix argument incompatible
* fix based on ni-python-styleguide
* Add 32 DIO device DI loopback fixtures and update test
Introduce new pytest fixtures for DI loopback tasks on ports 0, 1, and 2 for both standard and 32 DIO devices. Update the test function to use the 32 DIO-specific fixtures and assertions. Refactor test code to ensure correct fixture usage for each device type.
* fix based on ni-python-styleguide
* Rename line_number to min_num_lines for clarity
The parameter line_number in _x_series_device and its usages
has been renamed to min_num_lines to better reflect its purpose
as the minimum number of digital lines required. This change
affects both the function definition and its call in the
real_x_series_device_32dio fixture. No logic was altered.
* fix based on ni-python-styleguide
---------
Co-authored-by: TanYiQing <[email protected]>1 parent 5a3995a commit daf2900
2 files changed
+57
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
163 | 176 | | |
164 | 177 | | |
165 | 178 | | |
| |||
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
176 | 202 | | |
177 | 203 | | |
178 | 204 | | |
| |||
186 | 212 | | |
187 | 213 | | |
188 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
189 | 228 | | |
190 | 229 | | |
191 | 230 | | |
| |||
447 | 486 | | |
448 | 487 | | |
449 | 488 | | |
450 | | - | |
451 | | - | |
452 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
453 | 492 | | |
454 | | - | |
| 493 | + | |
455 | 494 | | |
456 | 495 | | |
457 | | - | |
| 496 | + | |
458 | 497 | | |
459 | 498 | | |
460 | 499 | | |
| |||
469 | 508 | | |
470 | 509 | | |
471 | 510 | | |
472 | | - | |
473 | | - | |
474 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
475 | 514 | | |
476 | 515 | | |
477 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
183 | 192 | | |
184 | 193 | | |
185 | 194 | | |
| |||
0 commit comments