Skip to content

Commit

Permalink
run make black
Browse files Browse the repository at this point in the history
  • Loading branch information
jfuss committed May 5, 2021
1 parent 2817379 commit ade7c43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/swagger/test_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,7 @@ def test_should_include_none_if_default_is_overwritte(self):
self.editor.add_auth_to_method("/cognito", "get", auth, self.api)
self.assertEqual([{"NONE": []}], self.editor.swagger["paths"]["/cognito"]["get"]["security"])


class TestSwaggerEditor_set_path_default_authorizer(TestCase):
def setUp(self):
self.api = api = {
Expand Down Expand Up @@ -1488,4 +1489,6 @@ def setUp(self):

def test_should_fail_when_path_methods_are_invalid(self):
with self.assertRaises(InvalidDocumentException):
self.editor.set_path_default_authorizer("/cognito", "MyCognitoAuth", {"MyOtherCognitoAuth": {}, "MyCognitoAuth": {}})
self.editor.set_path_default_authorizer(
"/cognito", "MyCognitoAuth", {"MyOtherCognitoAuth": {}, "MyCognitoAuth": {}}
)

0 comments on commit ade7c43

Please sign in to comment.