Deleting an action by id decreases actionCount.
(api_client, clean_state)
| 308 | |
| 309 | @pytest.mark.project |
| 310 | def 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 |
nothing calls this directly
no test coverage detected