@@ -672,8 +672,7 @@ def test_create_honeytoken(
672672 "name" : "honeytoken A" ,
673673 "description" : "honeytoken used in the repository AA" ,
674674 "created_at" : "2019-08-22T14:15:22Z" ,
675- "gitguardian_url" :
676- "https://dashboard.gitguardian.com/workspace/1/honeytokens/d45a123f-b15d-4fea-abf6-ff2a8479de5b" ,
675+ "gitguardian_url" : "https://dashboard.gitguardian.com/workspace/1/honeytokens/d45a123f-b15d-4fea-abf6-ff2a8479de5b" , # noqa: E501
677676 "status" : "active" ,
678677 "triggered_at" : "2019-08-22T14:15:22Z" ,
679678 "revoked_at" : None ,
@@ -683,18 +682,17 @@ def test_create_honeytoken(
683682 "revoker_id" : None ,
684683 "creator_api_token_id" : None ,
685684 "revoker_api_token_id" : None ,
686- "token" : {
687- "access_token_id" : "AAAA" ,
688- "secret_key" : "BBB"
689- },
690- "tags" : ["publicly_exposed" ]
685+ "token" : {"access_token_id" : "AAAA" , "secret_key" : "BBB" },
686+ "tags" : ["publicly_exposed" ],
691687 }
692688
693689 request_mock .return_value = mock_response
694690
695- result = client .create_honeytoken (name = "honeytoken A" ,
696- description = "honeytoken used in the repository AA" ,
697- type_ = "AWS" )
691+ result = client .create_honeytoken (
692+ name = "honeytoken A" ,
693+ description = "honeytoken used in the repository AA" ,
694+ type_ = "AWS" ,
695+ )
698696
699697 assert request_mock .called
700698 assert isinstance (result , HoneytokenResponse )
@@ -719,9 +717,11 @@ def test_create_honeytoken_error(
719717
720718 request_mock .return_value = mock_response
721719
722- result = client .create_honeytoken (name = "honeytoken A" ,
723- description = "honeytoken used in the repository AA" ,
724- type_ = "AWS" )
720+ result = client .create_honeytoken (
721+ name = "honeytoken A" ,
722+ description = "honeytoken used in the repository AA" ,
723+ type_ = "AWS" ,
724+ )
725725
726726 assert request_mock .called
727727 assert isinstance (result , Detail )
0 commit comments