MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / test_delete_action

Function test_delete_action

tests/integration/test_project_editor.py:310–319  ·  view source on GitHub ↗

Deleting an action by id decreases actionCount.

(api_client, clean_state)

Source from the content-addressed store, hash-verified

308
309@pytest.mark.project
310def test_delete_action(api_client, clean_state):
311 """Deleting an action by id decreases actionCount."""
312 api_client.add_action()
313 api_client.add_action()
314 aid = _last_action_id(api_client)
315 before = _status(api_client).get("actionCount", 0)
316
317 api_client.delete_action(aid)
318
319 assert _status(api_client).get("actionCount", 0) == before - 1
320
321
322@pytest.mark.project

Callers

nothing calls this directly

Calls 5

_last_action_idFunction · 0.85
add_actionMethod · 0.80
delete_actionMethod · 0.80
_statusFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected