@@ -77,7 +77,7 @@ async def asyncSetUp(self):
77
77
did_doc_attach = self .did_doc_attach ,
78
78
)
79
79
80
- @pytest .mark .asyncio
80
+ @pytest .mark .asyncio ( scope = "module" )
81
81
@mock .patch .object (test_module , "DIDXManager" )
82
82
async def test_called (self , mock_didx_mgr ):
83
83
mock_didx_mgr .return_value .accept_response = mock .CoroutineMock ()
@@ -91,7 +91,7 @@ async def test_called(self, mock_didx_mgr):
91
91
)
92
92
assert not responder .messages
93
93
94
- @pytest .mark .asyncio
94
+ @pytest .mark .asyncio ( scope = "module" )
95
95
@mock .patch .object (test_module , "DIDXManager" )
96
96
async def test_called_auto_ping (self , mock_didx_mgr ):
97
97
self .ctx .update_settings ({"auto_ping_connection" : True })
@@ -109,7 +109,7 @@ async def test_called_auto_ping(self, mock_didx_mgr):
109
109
result , target = messages [0 ]
110
110
assert isinstance (result , Ping )
111
111
112
- @pytest .mark .asyncio
112
+ @pytest .mark .asyncio ( scope = "module" )
113
113
@mock .patch .object (test_module , "DIDXManager" )
114
114
@mock .patch .object (connection_target , "ConnectionTarget" )
115
115
async def test_problem_report (self , mock_conn_target , mock_didx_mgr ):
@@ -146,7 +146,7 @@ async def test_problem_report(self, mock_conn_target, mock_didx_mgr):
146
146
)
147
147
assert target == {"target_list" : [mock_conn_target ]}
148
148
149
- @pytest .mark .asyncio
149
+ @pytest .mark .asyncio ( scope = "module" )
150
150
@mock .patch .object (test_module , "DIDXManager" )
151
151
@mock .patch .object (connection_target , "ConnectionTarget" )
152
152
async def test_problem_report_did_doc (
@@ -193,7 +193,7 @@ async def test_problem_report_did_doc(
193
193
)
194
194
assert target == {"target_list" : [mock_conn_target ]}
195
195
196
- @pytest .mark .asyncio
196
+ @pytest .mark .asyncio ( scope = "module" )
197
197
@mock .patch .object (test_module , "DIDXManager" )
198
198
@mock .patch .object (connection_target , "ConnectionTarget" )
199
199
async def test_problem_report_did_doc_no_conn_target (
0 commit comments