| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_guardian_factors_list_() -> None: |
| 5 | """Test list endpoint with WireMock""" |
| 6 | test_id = "guardian.factors.list_.0" |
| 7 | client = get_client(test_id) |
| 8 | client.guardian.factors.list() |
| 9 | verify_request_count(test_id, "GET", "/guardian/factors", None, 1) |
| 10 | |
| 11 | |
| 12 | def test_guardian_factors_set_() -> None: |
| 13 | """Test set endpoint with WireMock""" |
| 14 | test_id = "guardian.factors.set_.0" |
| 15 | client = get_client(test_id) |
| 16 | client.guardian.factors.set( |
| 17 | name="push-notification", |
| 18 | enabled=True, |
| 19 | ) |
| 20 | verify_request_count(test_id, "PUT", "/guardian/factors/push-notification", None, 1) |