Skip to content

Commit 0f47f70

Browse files
committed
Formatted code
Signed-off-by: Anastasiia <sivirina99@mail.ru>
1 parent 07efbf6 commit 0f47f70

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

aries_cloudagent/protocols/present_proof/dif/pres_exch_handler.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

aries_cloudagent/protocols/present_proof/v2_0/formats/dif/tests/test_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
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",

aries_cloudagent/protocols/present_proof/v2_0/messages/tests/test_pres.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,6 @@
18181818
)
18191819

18201820

1821-
18221821
class TestV20Pres(TestCase):
18231822
"""Presentation tests."""
18241823

aries_cloudagent/protocols/present_proof/v2_0/tests/test_manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)