kopia lustrzana https://github.com/sepandhaghighi/samila
Test (#167)
* fix : `status` issue fixed in tests. * fix : `status["*"]` -> `result['status'][*]`pull/166/head
rodzic
539547a7c1
commit
36085c761b
|
@ -25,21 +25,21 @@ True
|
|||
>>> while(status == False and counter<try_limit):
|
||||
... result = g.nft_storage(api_key=NFT_STORAGE_API_KEY, upload_config=True)
|
||||
... counter = counter + 1
|
||||
... status = result["status"]
|
||||
... status = all(result["status"].values())
|
||||
... time.sleep(10)
|
||||
>>> status["image"]
|
||||
>>> result['status']["image"]
|
||||
True
|
||||
>>> status["config"]
|
||||
>>> result['status']["config"]
|
||||
True
|
||||
>>> status = False
|
||||
>>> counter = 0
|
||||
>>> while(status == False and counter<try_limit):
|
||||
... result = g.nft_storage(api_key=NFT_STORAGE_API_KEY, upload_data=True)
|
||||
... counter = counter + 1
|
||||
... status = result["status"]
|
||||
... status = all(result["status"].values())
|
||||
... time.sleep(10)
|
||||
>>> status["image"]
|
||||
>>> result['status']["image"]
|
||||
True
|
||||
>>> status["data"]
|
||||
>>> result['status']["data"]
|
||||
True
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue