Skip to content

Commit 058f083

Browse files
authored
Merge pull request #130 from jeremygram/129-fix_print_projects
Update me[name] and me[email] fields to match response from REST API
2 parents 5bf65f6 + 9f6160f commit 058f083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testdroid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def get_project(self, project_id):
398398
"""
399399
def print_projects(self, limit=0):
400400
me = self.get_me()
401-
print("Projects for %s <%s>:" % (me['name'], me['email']))
401+
print("Projects for %s %s <%s>:" % (me['firstName'], me['lastName'], me['email']))
402402

403403
for project in self.get_projects(limit)['data']:
404404
print("%s %s \"%s\"" % (str(project['id']).ljust(10), project['type'].ljust(15), project['name']))

0 commit comments

Comments
 (0)