@@ -73,6 +73,7 @@ def options():
73
73
yield LDProofVCOptions .deserialize (VC ["options" ])
74
74
75
75
76
+ @pytest .mark .asyncio
76
77
async def test_assert_can_issue_with_id_and_proof_type (manager : VcLdpManager ):
77
78
with pytest .raises (VcLdpManagerError ) as context :
78
79
await manager .assert_can_issue_with_id_and_proof_type (
@@ -134,6 +135,7 @@ async def test_assert_can_issue_with_id_and_proof_type(manager: VcLdpManager):
134
135
assert "Issuer did did:key:notfound not found" in str (context .value )
135
136
136
137
138
+ @pytest .mark .asyncio
137
139
async def test_get_did_info_for_did_sov (manager : VcLdpManager , wallet : MagicMock ):
138
140
wallet .get_local_did = async_mock .CoroutineMock ()
139
141
@@ -142,6 +144,7 @@ async def test_get_did_info_for_did_sov(manager: VcLdpManager, wallet: MagicMock
142
144
assert did_info == wallet .get_local_did .return_value
143
145
144
146
147
+ @pytest .mark .asyncio
145
148
async def test_get_did_info_for_did_key (manager : VcLdpManager , wallet : MagicMock ):
146
149
wallet .get_local_did .reset_mock ()
147
150
@@ -150,6 +153,7 @@ async def test_get_did_info_for_did_key(manager: VcLdpManager, wallet: MagicMock
150
153
assert did_info == wallet .get_local_did .return_value
151
154
152
155
156
+ @pytest .mark .asyncio
153
157
async def test_get_suite_for_credential (manager : VcLdpManager ):
154
158
vc = VerifiableCredential .deserialize (VC ["credential" ])
155
159
options = LDProofVCOptions .deserialize (VC ["options" ])
@@ -177,6 +181,7 @@ async def test_get_suite_for_credential(manager: VcLdpManager):
177
181
mock_did_info .assert_called_once_with (vc .issuer_id )
178
182
179
183
184
+ @pytest .mark .asyncio
180
185
async def test_get_suite (manager : VcLdpManager ):
181
186
proof = async_mock .MagicMock ()
182
187
did_info = async_mock .MagicMock ()
@@ -224,6 +229,7 @@ async def test_get_suite(manager: VcLdpManager):
224
229
assert suite .key_pair .public_key_base58 == did_info .verkey
225
230
226
231
232
+ @pytest .mark .asyncio
227
233
async def test_get_proof_purpose (manager : VcLdpManager ):
228
234
purpose = manager ._get_proof_purpose ()
229
235
assert isinstance (purpose , CredentialIssuancePurpose )
@@ -246,6 +252,7 @@ async def test_get_proof_purpose(manager: VcLdpManager):
246
252
assert "Unsupported proof purpose: random" in str (context .value )
247
253
248
254
255
+ @pytest .mark .asyncio
249
256
async def test_prepare_detail (
250
257
manager : VcLdpManager , vc : VerifiableCredential , options : LDProofVCOptions
251
258
):
@@ -258,6 +265,7 @@ async def test_prepare_detail(
258
265
assert SECURITY_CONTEXT_BBS_URL in vc .context_urls
259
266
260
267
268
+ @pytest .mark .asyncio
261
269
async def test_prepare_detail_ed25519_2020 (
262
270
manager : VcLdpManager , vc : VerifiableCredential , options : LDProofVCOptions
263
271
):
@@ -270,20 +278,24 @@ async def test_prepare_detail_ed25519_2020(
270
278
assert SECURITY_CONTEXT_ED25519_2020_URL in vc .context_urls
271
279
272
280
281
+ @pytest .mark .asyncio
273
282
async def test_issue ():
274
283
raise NotImplementedError ()
275
284
276
285
286
+ @pytest .mark .asyncio
277
287
async def test_issue_ed25519_2020 ():
278
288
"""Ensure ed25519 2020 context added to issued cred."""
279
289
raise NotImplementedError ()
280
290
281
291
292
+ @pytest .mark .asyncio
282
293
async def test_issue_bbs ():
283
294
"""Ensure BBS context is added to issued cred."""
284
295
raise NotImplementedError ()
285
296
286
297
298
+ @pytest .mark .asyncio
287
299
async def test_get_all_suites (manager : VcLdpManager ):
288
300
suites = await manager ._get_all_suites ()
289
301
assert len (suites ) == 4
0 commit comments