Skip to content

Commit d9784c3

Browse files
committed
update test against returning wrong type to catch up with pandera changes
1 parent 0bdb3b1 commit d9784c3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

test/data/load/return_wrong_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
def load() -> pd.DataFrame:
5-
pass
5+
return {"a": 1}

test/unit_test/_cli/pack_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
import pytest
1515
from click.testing import Result
16-
1716
from 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

7069
def test_if_load_miss_credentials_then_error_contains_meaningful_info():

0 commit comments

Comments
 (0)