Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/datacamp/pythonwhat
/ verify_sct
Function
verify_sct
tests/helper.py:101–106 ·
view source on GitHub ↗
(correct)
Source
from the content-addressed store, hash-verified
99
100
@contextmanager
101
def
verify_sct(correct):
102
if
correct:
103
yield
104
else
:
105
with
pytest.raises(TF):
106
yield
107
108
109
def
test_lines(test, sct_payload, ls, le, cs, ce):
Callers
3
test_running_code_isolation_run
Function · 0.90
test_urlretrieve_in_process
Function · 0.90
test_urlopen_in_process
Function · 0.90
Calls
no outgoing calls
Tested by
3
test_running_code_isolation_run
Function · 0.72
test_urlretrieve_in_process
Function · 0.72
test_urlopen_in_process
Function · 0.72