mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Removed minItems restrictions
This commit is contained in:
@@ -7,7 +7,6 @@ from pydivkit import (
|
||||
DivAction,
|
||||
DivBorder,
|
||||
DivContainer,
|
||||
DivGallery,
|
||||
DivGifImage,
|
||||
DivImage,
|
||||
DivText,
|
||||
@@ -72,17 +71,6 @@ def test_union_type():
|
||||
assert "card" in make_div(images)
|
||||
|
||||
|
||||
def test_ref_collections_error_simple_type():
|
||||
with pytest.raises(TypeError):
|
||||
class ImageItems(DivGallery):
|
||||
image_items: str = Field()
|
||||
items = [
|
||||
DivGallery(
|
||||
items=Ref(image_items),
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
def test_optional_expr():
|
||||
class CategoriesItem(DivContainer):
|
||||
corner_radius: int = Field()
|
||||
|
||||
Reference in New Issue
Block a user