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

Function test_urlopen_in_process

tests/test_local.py:87–95  ·  view source on GitHub ↗
(sol_code, stu_code)

Source from the content-addressed store, hash-verified

85 ],
86)
87def test_urlopen_in_process(sol_code, stu_code):
88 with in_temp_dir():
89 chain = setup_state("", "", pec="")
90
91 chain._state.solution_code = sol_code
92 chain._state.student_code = stu_code
93
94 with verify_sct(True):
95 chain.run()
96
97
98def write_file(path, name, content):

Callers

nothing calls this directly

Calls 4

in_temp_dirFunction · 0.90
setup_stateFunction · 0.90
verify_sctFunction · 0.90
runMethod · 0.80

Tested by

no test coverage detected