File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55import uuid
66from enum import Enum
77from types import SimpleNamespace
8- import random
98
109import pytest
1110import requests
1918from labelbox .schema .invite import Invite
2019from labelbox .schema .user import User
2120
22- dimension = random .randint (128 , 1024 )
23- IMG_URL = f"http://via.placeholder.com/{ dimension } /{ dimension } "
21+ IMG_URL = "https://picsum.photos/200/300.jpg"
2422
2523
2624class Environ (Enum ):
@@ -149,8 +147,8 @@ def client(environ: str):
149147@pytest .fixture (scope = "session" )
150148def image_url (client ):
151149 return client .upload_data (requests .get (IMG_URL ).content ,
152- content_type = "application/json " ,
153- filename = "json_import.json " ,
150+ content_type = "image/jpeg " ,
151+ filename = "image.jpeg " ,
154152 sign = True )
155153
156154
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ def test_get_datarow_metadata_ontology(mdo):
9696
9797
9898def test_bulk_upsert_datarow_metadata (datarow , mdo : DataRowMetadataOntology ):
99+ print (f"Datarow: { datarow } " )
100+ print (f"media attr: { datarow .media_attributes } " )
99101 metadata = make_metadata (datarow .uid )
100102 mdo .bulk_upsert ([metadata ])
101103 exported = mdo .bulk_export ([datarow .uid ])
You can’t perform that action at this time.
0 commit comments