@@ -23,17 +23,17 @@ class TestAudit:
23
23
def test_method_list (self , client : Cloudflare ) -> None :
24
24
audit = client .accounts .logs .audit .list (
25
25
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
26
- before = parse_date ("2014 -10-30 " ),
27
- since = parse_date ("2014 -10-30" ),
26
+ before = parse_date ("2024 -10-31 " ),
27
+ since = parse_date ("2024 -10-30" ),
28
28
)
29
29
assert_matches_type (SyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
30
30
31
31
@parametrize
32
32
def test_method_list_with_all_params (self , client : Cloudflare ) -> None :
33
33
audit = client .accounts .logs .audit .list (
34
34
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
35
- before = parse_date ("2014 -10-30 " ),
36
- since = parse_date ("2014 -10-30" ),
35
+ before = parse_date ("2024 -10-31 " ),
36
+ since = parse_date ("2024 -10-30" ),
37
37
account_name = "account_name" ,
38
38
action_result = "success" ,
39
39
action_type = "create" ,
@@ -65,8 +65,8 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
65
65
def test_raw_response_list (self , client : Cloudflare ) -> None :
66
66
response = client .accounts .logs .audit .with_raw_response .list (
67
67
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
68
- before = parse_date ("2014 -10-30 " ),
69
- since = parse_date ("2014 -10-30" ),
68
+ before = parse_date ("2024 -10-31 " ),
69
+ since = parse_date ("2024 -10-30" ),
70
70
)
71
71
72
72
assert response .is_closed is True
@@ -78,8 +78,8 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
78
78
def test_streaming_response_list (self , client : Cloudflare ) -> None :
79
79
with client .accounts .logs .audit .with_streaming_response .list (
80
80
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
81
- before = parse_date ("2014 -10-30 " ),
82
- since = parse_date ("2014 -10-30" ),
81
+ before = parse_date ("2024 -10-31 " ),
82
+ since = parse_date ("2024 -10-30" ),
83
83
) as response :
84
84
assert not response .is_closed
85
85
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -94,8 +94,8 @@ def test_path_params_list(self, client: Cloudflare) -> None:
94
94
with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
95
95
client .accounts .logs .audit .with_raw_response .list (
96
96
account_id = "" ,
97
- before = parse_date ("2014 -10-30 " ),
98
- since = parse_date ("2014 -10-30" ),
97
+ before = parse_date ("2024 -10-31 " ),
98
+ since = parse_date ("2024 -10-30" ),
99
99
)
100
100
101
101
@@ -106,17 +106,17 @@ class TestAsyncAudit:
106
106
async def test_method_list (self , async_client : AsyncCloudflare ) -> None :
107
107
audit = await async_client .accounts .logs .audit .list (
108
108
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
109
- before = parse_date ("2014 -10-30 " ),
110
- since = parse_date ("2014 -10-30" ),
109
+ before = parse_date ("2024 -10-31 " ),
110
+ since = parse_date ("2024 -10-30" ),
111
111
)
112
112
assert_matches_type (AsyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
113
113
114
114
@parametrize
115
115
async def test_method_list_with_all_params (self , async_client : AsyncCloudflare ) -> None :
116
116
audit = await async_client .accounts .logs .audit .list (
117
117
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
118
- before = parse_date ("2014 -10-30 " ),
119
- since = parse_date ("2014 -10-30" ),
118
+ before = parse_date ("2024 -10-31 " ),
119
+ since = parse_date ("2024 -10-30" ),
120
120
account_name = "account_name" ,
121
121
action_result = "success" ,
122
122
action_type = "create" ,
@@ -148,8 +148,8 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
148
148
async def test_raw_response_list (self , async_client : AsyncCloudflare ) -> None :
149
149
response = await async_client .accounts .logs .audit .with_raw_response .list (
150
150
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
151
- before = parse_date ("2014 -10-30 " ),
152
- since = parse_date ("2014 -10-30" ),
151
+ before = parse_date ("2024 -10-31 " ),
152
+ since = parse_date ("2024 -10-30" ),
153
153
)
154
154
155
155
assert response .is_closed is True
@@ -161,8 +161,8 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
161
161
async def test_streaming_response_list (self , async_client : AsyncCloudflare ) -> None :
162
162
async with async_client .accounts .logs .audit .with_streaming_response .list (
163
163
account_id = "a67e14daa5f8dceeb91fe5449ba496ef" ,
164
- before = parse_date ("2014 -10-30 " ),
165
- since = parse_date ("2014 -10-30" ),
164
+ before = parse_date ("2024 -10-31 " ),
165
+ since = parse_date ("2024 -10-30" ),
166
166
) as response :
167
167
assert not response .is_closed
168
168
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -177,6 +177,6 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
177
177
with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
178
178
await async_client .accounts .logs .audit .with_raw_response .list (
179
179
account_id = "" ,
180
- before = parse_date ("2014 -10-30 " ),
181
- since = parse_date ("2014 -10-30" ),
180
+ before = parse_date ("2024 -10-31 " ),
181
+ since = parse_date ("2024 -10-30" ),
182
182
)
0 commit comments