Skip to content

Commit bc9d18e

Browse files
docs: improve examples
1 parent aa0272a commit bc9d18e

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

tests/api_resources/test_custom_metadata_fields.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
3939
name="price",
4040
schema={
4141
"type": "Number",
42-
"default_value": "string",
42+
"default_value": [True, 10, "Hello"],
4343
"is_value_required": True,
4444
"max_length": 0,
4545
"max_value": 3000,
@@ -95,7 +95,7 @@ def test_method_update_with_all_params(self, client: ImageKit) -> None:
9595
id="id",
9696
label="price",
9797
schema={
98-
"default_value": "string",
98+
"default_value": [True, 10, "Hello"],
9999
"is_value_required": True,
100100
"max_length": 0,
101101
"max_value": 3000,
@@ -243,7 +243,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
243243
name="price",
244244
schema={
245245
"type": "Number",
246-
"default_value": "string",
246+
"default_value": [True, 10, "Hello"],
247247
"is_value_required": True,
248248
"max_length": 0,
249249
"max_value": 3000,
@@ -299,7 +299,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncImageKit)
299299
id="id",
300300
label="price",
301301
schema={
302-
"default_value": "string",
302+
"default_value": [True, 10, "Hello"],
303303
"is_value_required": True,
304304
"max_length": 0,
305305
"max_value": 3000,

tests/api_resources/test_dummy.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
192192
"inner_alignment": "left",
193193
"line_height": 0,
194194
"padding": 0,
195-
"radius": 0,
195+
"radius": "max",
196196
"rotation": 0,
197197
"typography": "typography",
198198
"width": 0,
@@ -309,7 +309,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
309309
"inner_alignment": "left",
310310
"line_height": 0,
311311
"padding": 0,
312-
"radius": 0,
312+
"radius": "max",
313313
"rotation": 0,
314314
"typography": "typography",
315315
"width": 0,
@@ -367,7 +367,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
367367
"inner_alignment": "left",
368368
"line_height": 0,
369369
"padding": 0,
370-
"radius": 0,
370+
"radius": "max",
371371
"rotation": 0,
372372
"typography": "typography",
373373
"width": 0,
@@ -432,7 +432,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
432432
"background": "background",
433433
"gradient": True,
434434
"height": 0,
435-
"radius": 0,
435+
"radius": "max",
436436
"width": 0,
437437
}
438438
],
@@ -442,7 +442,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
442442
"background": "background",
443443
"gradient": True,
444444
"height": 0,
445-
"radius": 0,
445+
"radius": "max",
446446
"width": 0,
447447
},
448448
src_options={
@@ -516,7 +516,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
516516
"inner_alignment": "left",
517517
"line_height": 0,
518518
"padding": 0,
519-
"radius": 0,
519+
"radius": "max",
520520
"rotation": 0,
521521
"typography": "typography",
522522
"width": 0,
@@ -615,7 +615,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
615615
"inner_alignment": "left",
616616
"line_height": 0,
617617
"padding": 0,
618-
"radius": 0,
618+
"radius": "max",
619619
"rotation": 0,
620620
"typography": "typography",
621621
"width": 0,
@@ -632,7 +632,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
632632
"inner_alignment": "left",
633633
"line_height": 0,
634634
"padding": 0,
635-
"radius": 0,
635+
"radius": "max",
636636
"rotation": 0,
637637
"typography": "typography",
638638
"width": 0,
@@ -701,7 +701,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
701701
"inner_alignment": "left",
702702
"line_height": 0,
703703
"padding": 0,
704-
"radius": 0,
704+
"radius": "max",
705705
"rotation": 0,
706706
"typography": "typography",
707707
"width": 0,
@@ -812,7 +812,7 @@ def test_method_create_with_all_params(self, client: ImageKit) -> None:
812812
"inner_alignment": "left",
813813
"line_height": 0,
814814
"padding": 0,
815-
"radius": 0,
815+
"radius": "max",
816816
"rotation": 0,
817817
"typography": "typography",
818818
"width": 0,
@@ -1048,7 +1048,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
10481048
"inner_alignment": "left",
10491049
"line_height": 0,
10501050
"padding": 0,
1051-
"radius": 0,
1051+
"radius": "max",
10521052
"rotation": 0,
10531053
"typography": "typography",
10541054
"width": 0,
@@ -1165,7 +1165,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
11651165
"inner_alignment": "left",
11661166
"line_height": 0,
11671167
"padding": 0,
1168-
"radius": 0,
1168+
"radius": "max",
11691169
"rotation": 0,
11701170
"typography": "typography",
11711171
"width": 0,
@@ -1223,7 +1223,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
12231223
"inner_alignment": "left",
12241224
"line_height": 0,
12251225
"padding": 0,
1226-
"radius": 0,
1226+
"radius": "max",
12271227
"rotation": 0,
12281228
"typography": "typography",
12291229
"width": 0,
@@ -1288,7 +1288,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
12881288
"background": "background",
12891289
"gradient": True,
12901290
"height": 0,
1291-
"radius": 0,
1291+
"radius": "max",
12921292
"width": 0,
12931293
}
12941294
],
@@ -1298,7 +1298,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
12981298
"background": "background",
12991299
"gradient": True,
13001300
"height": 0,
1301-
"radius": 0,
1301+
"radius": "max",
13021302
"width": 0,
13031303
},
13041304
src_options={
@@ -1372,7 +1372,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
13721372
"inner_alignment": "left",
13731373
"line_height": 0,
13741374
"padding": 0,
1375-
"radius": 0,
1375+
"radius": "max",
13761376
"rotation": 0,
13771377
"typography": "typography",
13781378
"width": 0,
@@ -1471,7 +1471,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
14711471
"inner_alignment": "left",
14721472
"line_height": 0,
14731473
"padding": 0,
1474-
"radius": 0,
1474+
"radius": "max",
14751475
"rotation": 0,
14761476
"typography": "typography",
14771477
"width": 0,
@@ -1488,7 +1488,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
14881488
"inner_alignment": "left",
14891489
"line_height": 0,
14901490
"padding": 0,
1491-
"radius": 0,
1491+
"radius": "max",
14921492
"rotation": 0,
14931493
"typography": "typography",
14941494
"width": 0,
@@ -1557,7 +1557,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
15571557
"inner_alignment": "left",
15581558
"line_height": 0,
15591559
"padding": 0,
1560-
"radius": 0,
1560+
"radius": "max",
15611561
"rotation": 0,
15621562
"typography": "typography",
15631563
"width": 0,
@@ -1668,7 +1668,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncImageKit)
16681668
"inner_alignment": "left",
16691669
"line_height": 0,
16701670
"padding": 0,
1671-
"radius": 0,
1671+
"radius": "max",
16721672
"rotation": 0,
16731673
"typography": "typography",
16741674
"width": 0,

tests/api_resources/test_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_method_update_with_all_params_overload_1(self, client: ImageKit) -> Non
110110
"name": "saved-extension",
111111
},
112112
],
113-
remove_ai_tags=["string"],
113+
remove_ai_tags="all",
114114
tags=["tag1", "tag2"],
115115
webhook_url="https://example.com",
116116
)
@@ -663,7 +663,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
663663
"name": "saved-extension",
664664
},
665665
],
666-
remove_ai_tags=["string"],
666+
remove_ai_tags="all",
667667
tags=["tag1", "tag2"],
668668
webhook_url="https://example.com",
669669
)

0 commit comments

Comments
 (0)