Merge pull request #46 from gene1wood/revert-some-autoformatting
Revert a few auto formatted comments and code structures
This commit is contained in:
Коммит
2b7951d2a0
|
@ -14,8 +14,7 @@ class Facebook(API):
|
|||
>>> fb.facebook.picture.get(redirect='false')
|
||||
{u'data': {u'is_silhouette': False,
|
||||
u'url':
|
||||
u'https://fbcdn-profile-a.akamaihd.net/hprofile-ak-frc3/
|
||||
t1.0-1/p50x50/1377580_10152203108461729_809245696_n.png'}})
|
||||
u'https://fbcdn-profile-a.akamaihd.net/hprofile-ak-frc3/t1.0-1/p50x50/1377580_10152203108461729_809245696_n.png'}})
|
||||
"""
|
||||
def __init__(self, *args, **kwargs):
|
||||
props = ConnectionProperties(
|
||||
|
|
|
@ -8,9 +8,7 @@ class SalesForce(API):
|
|||
SalesForce.com REST API
|
||||
|
||||
Example taken from
|
||||
http://www.salesforce.com/us/developer/docs/api_rest/
|
||||
index_Left.htm#CSHID=quickstart_code.htm|
|
||||
StartTopic=Content%2Fquickstart_code.htm|SkinName=webhelp
|
||||
http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#CSHID=quickstart_code.htm|StartTopic=Content%2Fquickstart_code.htm|SkinName=webhelp
|
||||
|
||||
>>> from SalesForce import SalesForce
|
||||
>>> sf = SalesForce()
|
||||
|
|
|
@ -44,21 +44,14 @@ class Test(object):
|
|||
raise ValueError('Bad test result ' + (res))
|
||||
|
||||
print(
|
||||
'\n'
|
||||
' Results\n'
|
||||
'--------------------------------------\n'
|
||||
'Tests Run: ',
|
||||
len(results),
|
||||
'\n'
|
||||
' Passed: ',
|
||||
passes,
|
||||
'\n'
|
||||
' Failed: ',
|
||||
fails,
|
||||
'\n'
|
||||
' Skipped: ',
|
||||
skips
|
||||
)
|
||||
'\n'
|
||||
' Results\n'
|
||||
'--------------------------------------\n'
|
||||
'Tests Run: ', len(results), '\n'
|
||||
' Passed: ', passes, '\n'
|
||||
' Failed: ', fails, '\n'
|
||||
' Skipped: ', skips
|
||||
)
|
||||
|
||||
def runTest(self, test, api):
|
||||
"""Run a single test with the given API session"""
|
||||
|
|
Загрузка…
Ссылка в новой задаче