MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / check_context

Function check_context

pythonwhat/test_funcs/test_compound_statement.py:513–520  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

511 for i, context_test in enumerate(context_tests or []):
512 # partial the substate check, because the function uses two prepended messages
513 def check_context(state):
514 return check_part_index(
515 state,
516 "context",
517 i,
518 "%s context" % get_ord(i + 1),
519 missing_msg=MSG_NUM_CTXT2,
520 )
521
522 check_context(child) # test exist
523

Callers 1

test_withFunction · 0.85

Calls 1

check_part_indexFunction · 0.90

Tested by

no test coverage detected