@@ -392,13 +392,14 @@ def print_available_free_devices(self, limit=0):
392
392
self .print_available_free_android_devices (limit )
393
393
self .print_available_free_ios_devices (limit )
394
394
395
- def create_project (self , project_name , project_type ):
395
+ def create_project (self , project_name , project_type = None ):
396
396
""" Create a project """
397
-
398
- project = self .post (path = "me/projects" , payload = {"name" : project_name , "type" : project_type })
397
+ if project_type :
398
+ print ("Project type is deprecated and not used anymore" )
399
+ project = self .post (path = "me/projects" , payload = {"name" : project_name })
399
400
print (project )
400
401
401
- logger .info ("Project %s: %s (%s) created" % (project ['id' ], project ['name' ], project [ 'type ' ]))
402
+ logger .info ("Project %s: %s created" % (project ['id' ], project ['name' ]))
402
403
return project
403
404
404
405
def delete_project (self , project_id ):
@@ -425,7 +426,7 @@ def print_projects(self, limit=0):
425
426
print ("Projects for %s %s <%s>:" % (me ['firstName' ], me ['lastName' ], me ['email' ]))
426
427
427
428
for project in self .get_projects (limit )['data' ]:
428
- print ("%s %s \" %s\" " % (str (project ['id' ]).ljust (10 ), project [ 'type' ]. ljust ( 15 ), project ['name' ]))
429
+ print ("%s \" %s\" " % (str (project ['id' ]).ljust (10 ), project ['name' ]))
429
430
430
431
def get_file (self , file_id ):
431
432
""" Get file """
@@ -662,7 +663,7 @@ def download_test_run(self, project_id, test_run_id):
662
663
logger .info ("" )
663
664
664
665
def __download_files (self , files , directory ):
665
- for file in files :
666
+ for file in files [ 'data' ] :
666
667
if file ['state' ] == "READY" :
667
668
full_path = "%s/%s" % (directory , file ['name' ])
668
669
if not os .path .exists (directory ):
@@ -829,15 +830,7 @@ def format_epilog(self, formatter):
829
830
me Get user details
830
831
available-free-devices Print list of currently available free devices
831
832
device-groups Get list of your device groups
832
- create-project <name> <type> Create a project
833
- Type is one of:
834
- ANDROID
835
- IOS
836
- UIAUTOMATOR
837
- APPIUM_ANDROID
838
- APPIUM_IOS
839
- CALABASH
840
- CALABASH_IOS
833
+ create-project <name>
841
834
delete-project <id> Delete a project
842
835
projects Get projects
843
836
get-file <file-id> Get file details
0 commit comments