mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
fix ci by ensuring order of created list (#2352)
This commit is contained in:
+1
-2
@@ -1503,7 +1503,6 @@ def test_inherited_model_field_copy():
|
||||
assert id(image_2) != id(item.images[1])
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason='see https://github.com/samuelcolvin/pydantic/pull/2193#issuecomment-778345456')
|
||||
def test_inherited_model_field_untouched():
|
||||
"""It should not copy models used as fields if explicitly asked"""
|
||||
|
||||
@@ -1522,7 +1521,7 @@ def test_inherited_model_field_untouched():
|
||||
image_1 = Image(path='my_image1.png')
|
||||
image_2 = Image(path='my_image2.png')
|
||||
|
||||
item = Item(images={image_1, image_2})
|
||||
item = Item(images=(image_1, image_2))
|
||||
assert image_1 in item.images
|
||||
|
||||
assert id(image_1) == id(item.images[0])
|
||||
|
||||
Reference in New Issue
Block a user