MCPcopy Create free account
hub / github.com/datacamp/pythonwhat / test_urlretrieve_in_process

Function test_urlretrieve_in_process

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

Source from the content-addressed store, hash-verified

58 ],
59)
60def test_urlretrieve_in_process(sol_code, stu_code):
61 # on mac an env var needs to be set:
62 # OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
63 with in_temp_dir():
64 chain = setup_state("", "", pec="")
65
66 chain._state.solution_code = sol_code
67 chain._state.student_code = stu_code
68
69 with verify_sct(True):
70 chain.run()
71
72
73@pytest.mark.parametrize(

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