88)
99import pytest
1010from .. import accessrequest_helper
11+ from Access import helpers
1112
1213
1314@pytest .fixture
@@ -229,6 +230,7 @@ def step_impl(context):
229230 assert "extraFields" in access
230231 assert "notice" in access
231232 assert "accessRequestPath" in access
233+ assert helpers .get_available_access_modules .call_count == 1
232234
233235
234236@then ("Return value should be empty access list" )
@@ -260,6 +262,7 @@ def step_impl(context):
260262 assert "extraFields" in access
261263 assert "notice" in access
262264 assert "accessRequestPath" in access
265+ assert helpers .get_available_access_modules .call_count == 1
263266
264267
265268@then ("Return value should return all four access with extra fields" )
@@ -270,6 +273,7 @@ def step_impl(context):
270273
271274 for access in context .response ["accesses" ]:
272275 assert "extraFields" in access
276+ assert helpers .get_available_access_modules .call_count == 1
273277
274278
275279@then ("Return value should return all four access with notice/alert" )
@@ -280,3 +284,4 @@ def step_impl(context):
280284
281285 for access in context .response ["accesses" ]:
282286 assert "notice" in access
287+ assert helpers .get_available_access_modules .call_count == 1
0 commit comments