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

Function test_non_dillable

tests/test_check_object.py:182–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180
181
182def test_non_dillable():
183 # xlrd and openpyxl needed for Excel support
184 code = "xl = pd.ExcelFile('battledeath.xlsx')"
185 res = helper.run(
186 {
187 "DC_PEC": "import pandas as pd; from urllib.request import urlretrieve; urlretrieve('https://s3.amazonaws.com/assets.datacamp.com/production/course_998/datasets/battledeath.xlsx', 'battledeath.xlsx')",
188 "DC_SOLUTION": code,
189 "DC_CODE": code,
190 "DC_SCT": "Ex().check_object('xl').has_equal_value()",
191 }
192 )
193 assert res["correct"]
194
195
196@pytest.mark.compiled

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected