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

Function test_mode

dronekit/test/sitl/test_simpledemo.py:27–33  ·  view source on GitHub ↗
(connpath)

Source from the content-addressed store, hash-verified

25# This test runs second. Add as many tests as you like
26@with_sitl
27def test_mode(connpath):
28 v = connect(connpath, wait_ready=True)
29
30 # Ensure Mode is an instance of VehicleMode
31 assert isinstance(v.mode, VehicleMode)
32
33 v.close()

Callers

nothing calls this directly

Calls 2

connectFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected