File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/pytest-simcore/src/pytest_simcore/helpers Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2727DEFAULT_FAKER : Final = faker .Faker ()
2828
2929
30+ def random_icon_url (fake : Faker ):
31+ return fake .image_url (width = 16 , height = 16 )
32+
33+
34+ def random_thumbnail_url (fake : Faker ):
35+ return fake .image_url (width = 32 , height = 32 )
36+
37+
3038def _compute_hash (password : str ) -> str :
3139 try :
3240 # 'passlib' will be used only if already installed.
@@ -396,7 +404,8 @@ def random_service_meta_data(
396404 # optional
397405 "description_ui" : fake .pybool (),
398406 "owner" : owner_primary_gid ,
399- "thumbnail" : _pick_from ([fake .image_url (), None ]), # nullable
407+ "thumbnail" : _pick_from ([random_thumbnail_url (fake ), None ]), # nullable
408+ "icon" : _pick_from ([random_icon_url (fake ), None ]), # nullable
400409 "version_display" : _pick_from ([f"v{ _version } " , None ]), # nullable
401410 "classifiers" : [], # has default
402411 "quality" : {}, # has default
You can’t perform that action at this time.
0 commit comments