Commit d2b231d
authored
Update ixia_fixture to fix collection errors (#2570)
* Update ixia_fixture to fix collection errors
Errors were reported during pytest collecting test cases because
ImportError for IxNetworkApi, which is available only on ixia devices.
This commit attempts to catch import exception and skips cases when
exception is caught.
Signed-off-by: bingwang <[email protected]>
* Fix typo.
Signed-off-by: bingwang <[email protected]>1 parent 053ab20 commit d2b231d
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | | - | |
153 | | - | |
| 155 | + | |
| 156 | + | |
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
160 | | - | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
0 commit comments