MCPcopy Index your code
hub / github.com/dronekit/dronekit-python / test_timeout

Function test_timeout

dronekit/test/sitl/test_modeavailable.py:13–23  ·  view source on GitHub ↗
(connpath)

Source from the content-addressed store, hash-verified

11
12@with_sitl
13def test_timeout(connpath):
14 v = connect(connpath)
15
16 # Set the vehicle and autopilot type to 'unsupported' types that MissionPlanner uses as of 17.Apr.2016
17 v._vehicle_type = 6
18 v._autopilot_type = 8
19
20 # The above types trigger 'TypeError: argument of type 'NoneType' is not iterable' which is addressed in issue #610
21 is_available = v._is_mode_available(0)
22
23 v.close()

Callers

nothing calls this directly

Calls 3

connectFunction · 0.90
_is_mode_availableMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected