File tree Expand file tree Collapse file tree
aries_cloudagent/protocols/present_proof Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1250,7 +1250,7 @@ async def create_vp(
12501250 res = await self .apply_requirements (
12511251 req = nested_req ,
12521252 credentials = credentials ,
1253- records_filter = records_filter
1253+ records_filter = records_filter ,
12541254 )
12551255 result .append (res )
12561256 else :
@@ -1288,9 +1288,7 @@ async def create_vp(
12881288 applicable_creds = applicable_creds
12891289 )
12901290 if not issuer_id and len (filtered_creds_list ) == 0 :
1291- vp = await create_presentation (
1292- credentials = applicable_creds_list
1293- )
1291+ vp = await create_presentation (credentials = applicable_creds_list )
12941292 vp ["presentation_submission" ] = submission_property .serialize ()
12951293 if self .proof_type is BbsBlsSignature2020 .signature_type :
12961294 vp ["@context" ].append (SECURITY_CONTEXT_BBS_URL )
Original file line number Diff line number Diff line change 289289 "@context" : ["https://www.w3.org/2018/credentials/v1" ],
290290 "type" : ["VerifiablePresentation" ],
291291 "verifiableCredential" : [
292- {
292+ {
293293 "@context" : [
294294 "https://www.w3.org/2018/credentials/v1" ,
295295 "https://w3id.org/citizenship/v1" ,
Original file line number Diff line number Diff line change 18181818)
18191819
18201820
1821-
18221821class TestV20Pres (TestCase ):
18231822 """Presentation tests."""
18241823
Original file line number Diff line number Diff line change @@ -831,7 +831,6 @@ async def test_create_pres_indy_and_dif(self):
831831 AttachDecorator .data_base64 (INDY_PROOF_REQ_NAME , ident = "indy" ),
832832 AttachDecorator .data_json (DIF_PRES_REQ , ident = "dif" ),
833833 ],
834-
835834 )
836835 px_rec_in = V20PresExRecord (pres_request = pres_request .serialize ())
837836 more_magic_rr = async_mock .MagicMock (
@@ -856,7 +855,7 @@ async def test_create_pres_indy_and_dif(self):
856855
857856 mock_create_pres .return_value = (
858857 PRES_20 ,
859- AttachDecorator .data_json (DIF_PRES , ident = "dif" )
858+ AttachDecorator .data_json (DIF_PRES , ident = "dif" ),
860859 )
861860
862861 req_creds = await indy_proof_req_preview2indy_requested_creds (
@@ -2175,7 +2174,7 @@ async def test_verify_pres_indy_and_dif(self):
21752174 pres_request = pres_request ,
21762175 pres = pres ,
21772176 )
2178-
2177+
21792178 self .profile .context .injector .bind_instance (
21802179 DocumentLoader , custom_document_loader
21812180 )
You can’t perform that action at this time.
0 commit comments