MCPcopy
hub / github.com/dronekit/dronekit-python / test_empty_clear

Function test_empty_clear

dronekit/test/sitl/test_waypoints.py:10–19  ·  view source on GitHub ↗
(connpath)

Source from the content-addressed store, hash-verified

8
9@with_sitl
10def test_empty_clear(connpath):
11 vehicle = connect(connpath)
12
13 # Calling clear() on an empty object should not crash.
14 vehicle.commands.clear()
15 vehicle.commands.upload()
16
17 assert_equals(len(vehicle.commands), 0)
18
19 vehicle.close()
20
21
22@with_sitl

Callers

nothing calls this directly

Calls 4

connectFunction · 0.90
clearMethod · 0.80
uploadMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected