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

Function test_manual_converter_2

tests/test_check_object.py:216–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215
216def test_manual_converter_2():
217 s = setup_state(
218 stu_code="my_array = np.array([[0,0], [0,0], [0,0]])",
219 sol_code="my_array = np.array([[1,2], [3,4], [5,6]])",
220 pec="import numpy as np",
221 )
222 set_converter(key="numpy.ndarray", fundef=lambda x: x.shape)
223 s.check_object("my_array").has_equal_value()
224
225
226@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

setup_stateFunction · 0.90
set_converterFunction · 0.90

Tested by

no test coverage detected