()
| 180 | |
| 181 | |
| 182 | def 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 |