| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_actions_triggers_bindings_list_() -> None: |
| 5 | """Test list endpoint with WireMock""" |
| 6 | test_id = "actions.triggers.bindings.list_.0" |
| 7 | client = get_client(test_id) |
| 8 | client.actions.triggers.bindings.list( |
| 9 | trigger_id="post-login", |
| 10 | page=1, |
| 11 | per_page=1, |
| 12 | ) |
| 13 | verify_request_count(test_id, "GET", "/actions/triggers/post-login/bindings", {"page": "1", "per_page": "1"}, 1) |
| 14 | |
| 15 | |
| 16 | def test_actions_triggers_bindings_update_many() -> None: |
| 17 | """Test updateMany endpoint with WireMock""" |
| 18 | test_id = "actions.triggers.bindings.update_many.0" |
| 19 | client = get_client(test_id) |
| 20 | client.actions.triggers.bindings.update_many( |
| 21 | trigger_id="post-login", |
| 22 | ) |
| 23 | verify_request_count(test_id, "PATCH", "/actions/triggers/post-login/bindings", None, 1) |