Skip to content

Commit 51aa235

Browse files
author
Jimmy John
committed
fixing pep8 violations
1 parent b8c7c3e commit 51aa235

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

tests/src/OneLogin/saml2_tests/metadata_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ def testBuilderAttributeConsumingService(self):
171171
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" FriendlyName="uid" \
172172
isRequired="false"/></md:AttributeConsumingService>', metadata)
173173

174-
175-
176174
def testSignMetadata(self):
177175
"""
178176
Tests the signMetadata method of the OneLogin_Saml2_Metadata

tests/src/OneLogin/saml2_tests/settings_test.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,8 @@ def testCheckSettings(self):
298298
self.assertIn('sp_entityId_not_found', e.message)
299299
self.assertIn('sp_acs_not_found', e.message)
300300

301-
#AttributeConsumingService tests
302-
303-
#serviceName, requestedAttributes are required
301+
# AttributeConsumingService tests
302+
# serviceName, requestedAttributes are required
304303
settings_info['sp']['attributeConsumingService'] = [
305304
{
306305
"isDefault": False,
@@ -320,11 +319,11 @@ def testCheckSettings(self):
320319
"isDefault": "False",
321320
"serviceName": {},
322321
"serviceDescription": ["Test Service"],
323-
"requestedAttributes": [ {
324-
"nameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
325-
"friendlyName": "givenName",
326-
"isRequired": "False"
327-
}
322+
"requestedAttributes": [{
323+
"nameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
324+
"friendlyName": "givenName",
325+
"isRequired": "False"
326+
}
328327
]
329328
}
330329
]
@@ -338,7 +337,6 @@ def testCheckSettings(self):
338337
self.assertIn('sp_attributeConsumingService_serviceName_type_invalid', e.message)
339338
self.assertIn('sp_attributeConsumingService_isDefault_type_invalid', e.message)
340339

341-
342340
settings_info['idp']['entityID'] = 'entityId'
343341
settings_info['idp']['singleSignOnService'] = {}
344342
settings_info['idp']['singleSignOnService']['url'] = 'invalid_value'

0 commit comments

Comments
 (0)