File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33
44def load () -> pd .DataFrame :
5- pass
5+ return { "a" : 1 }
Original file line number Diff line number Diff line change 1313
1414import pytest
1515from click .testing import Result
16-
1716from dac ._input .config import PackConfig
1817
1918
@@ -60,11 +59,11 @@ def test_if_load_requires_missing_requirement_then_error_contains_meaningful_inf
6059 assert "No module named 'modin'" in error_message
6160
6261
63- def test_if_load_returns_wrong_type_then_error_contains_meningful_info ():
62+ def test_if_load_returns_wrong_type_then_error_contains_meaningful_info ():
6463 result = invoke_dac_pack (load = get_path_to_return_wrong_type_load ().as_posix ())
6564 assert result .exit_code != 0
6665 error_message = str (result .exception )
67- assert "expected pd.DataFrame, got <class 'NoneType'> " in error_message
66+ assert "Backend not found " in error_message
6867
6968
7069def test_if_load_miss_credentials_then_error_contains_meaningful_info ():
You can’t perform that action at this time.
0 commit comments