Debian Codegraph @

tests/wire/test_guardian_factors_pushNotification.py

raw symbols SCIP
1 from .conftest import get_client, verify_request_count
2
3
4 def test_guardian_factors_pushNotification_get_apns_provider() -> None:
5 """Test getApnsProvider endpoint with WireMock"""
6 test_id = "guardian.factors.push_notification.get_apns_provider.0"
7 client = get_client(test_id)
8 client.guardian.factors.push_notification.get_apns_provider()
9 verify_request_count(test_id, "GET", "/guardian/factors/push-notification/providers/apns", None, 1)
10
11
12 def test_guardian_factors_pushNotification_set_apns_provider() -> None:
13 """Test setApnsProvider endpoint with WireMock"""
14 test_id = "guardian.factors.push_notification.set_apns_provider.0"
15 client = get_client(test_id)
16 client.guardian.factors.push_notification.set_apns_provider()
17 verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/apns", None, 1)
18
19
20 def test_guardian_factors_pushNotification_update_apns_provider() -> None:
21 """Test updateApnsProvider endpoint with WireMock"""
22 test_id = "guardian.factors.push_notification.update_apns_provider.0"
23 client = get_client(test_id)
24 client.guardian.factors.push_notification.update_apns_provider()
25 verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/apns", None, 1)
26
27
28 def test_guardian_factors_pushNotification_set_fcm_provider() -> None:
29 """Test setFcmProvider endpoint with WireMock"""
30 test_id = "guardian.factors.push_notification.set_fcm_provider.0"
31 client = get_client(test_id)
32 client.guardian.factors.push_notification.set_fcm_provider()
33 verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/fcm", None, 1)
34
35
36 def test_guardian_factors_pushNotification_update_fcm_provider() -> None:
37 """Test updateFcmProvider endpoint with WireMock"""
38 test_id = "guardian.factors.push_notification.update_fcm_provider.0"
39 client = get_client(test_id)
40 client.guardian.factors.push_notification.update_fcm_provider()
41 verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/fcm", None, 1)
42
43
44 def test_guardian_factors_pushNotification_set_fcmv_1_provider() -> None:
45 """Test setFcmv1Provider endpoint with WireMock"""
46 test_id = "guardian.factors.push_notification.set_fcmv_1_provider.0"
47 client = get_client(test_id)
48 client.guardian.factors.push_notification.set_fcmv_1_provider()
49 verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/fcmv1", None, 1)
50
51
52 def test_guardian_factors_pushNotification_update_fcmv_1_provider() -> None:
53 """Test updateFcmv1Provider endpoint with WireMock"""
54 test_id = "guardian.factors.push_notification.update_fcmv_1_provider.0"
55 client = get_client(test_id)
56 client.guardian.factors.push_notification.update_fcmv_1_provider()
57 verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/fcmv1", None, 1)
58
59
60 def test_guardian_factors_pushNotification_get_sns_provider() -> None:
61 """Test getSnsProvider endpoint with WireMock"""
62 test_id = "guardian.factors.push_notification.get_sns_provider.0"
63 client = get_client(test_id)
64 client.guardian.factors.push_notification.get_sns_provider()
65 verify_request_count(test_id, "GET", "/guardian/factors/push-notification/providers/sns", None, 1)
66
67
68 def test_guardian_factors_pushNotification_set_sns_provider() -> None:
69 """Test setSnsProvider endpoint with WireMock"""
70 test_id = "guardian.factors.push_notification.set_sns_provider.0"
71 client = get_client(test_id)
72 client.guardian.factors.push_notification.set_sns_provider()
73 verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/providers/sns", None, 1)
74
75
76 def test_guardian_factors_pushNotification_update_sns_provider() -> None:
77 """Test updateSnsProvider endpoint with WireMock"""
78 test_id = "guardian.factors.push_notification.update_sns_provider.0"
79 client = get_client(test_id)
80 client.guardian.factors.push_notification.update_sns_provider()
81 verify_request_count(test_id, "PATCH", "/guardian/factors/push-notification/providers/sns", None, 1)
82
83
84 def test_guardian_factors_pushNotification_get_selected_provider() -> None:
85 """Test getSelectedProvider endpoint with WireMock"""
86 test_id = "guardian.factors.push_notification.get_selected_provider.0"
87 client = get_client(test_id)
88 client.guardian.factors.push_notification.get_selected_provider()
89 verify_request_count(test_id, "GET", "/guardian/factors/push-notification/selected-provider", None, 1)
90
91
92 def test_guardian_factors_pushNotification_set_provider() -> None:
93 """Test setProvider endpoint with WireMock"""
94 test_id = "guardian.factors.push_notification.set_provider.0"
95 client = get_client(test_id)
96 client.guardian.factors.push_notification.set_provider(
97 provider="guardian",
98 )
99 verify_request_count(test_id, "PUT", "/guardian/factors/push-notification/selected-provider", None, 1)