Skip to content

Commit c786c3a

Browse files
test:added call_count method
1 parent 64127cf commit c786c3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Access/tests/test_get_request_access.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)
99
import pytest
1010
from .. 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

Comments
 (0)