Skip to content

Commit 270749f

Browse files
committed
Add is_integer_dtype
1 parent c54c8be commit 270749f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python_ci/src/tests/test_df_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from unittest.mock import patch
33

44
import pandas as pd
5+
from pandas.api.types import is_integer_dtype
56
from pandas.testing import assert_frame_equal
67

78
from src.df_service import DFService
@@ -72,6 +73,7 @@ def test_return_expected_df(self) -> None:
7273
})
7374
actual_df = self.service.swap_and_remove_path(self.test_df)
7475

76+
self.assertTrue(is_integer_dtype(actual_df['num']))
7577
assert_frame_equal(actual_df, expected_df)
7678
self.assertEqual(self.m_get_local_path.call_count, 3)
7779

@@ -93,6 +95,7 @@ def test_return_expected_df_when_get_local_path_return_none(self) -> None:
9395
})
9496
actual_df = self.service.swap_and_remove_path(self.test_df)
9597

98+
self.assertTrue(is_integer_dtype(actual_df['num']))
9699
assert_frame_equal(actual_df, expected_df)
97100
self.assertEqual(self.m_get_local_path.call_count, 3)
98101

0 commit comments

Comments
 (0)