File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- from unittest import TestCase , main
1
+ from unittest import TestCase , main , skip
2
2
from unittest .mock import patch
3
3
4
4
import pandas as pd
5
+ from pandas .api .types import is_integer_dtype
5
6
from pandas .testing import assert_frame_equal
6
7
7
8
from src .df_service import DFService
@@ -72,6 +73,7 @@ def test_return_expected_df(self) -> None:
72
73
})
73
74
actual_df = self .service .swap_and_remove_path (self .test_df )
74
75
76
+ self .assertTrue (is_integer_dtype (actual_df ['num' ]))
75
77
assert_frame_equal (actual_df , expected_df )
76
78
self .assertEqual (self .m_get_local_path .call_count , 3 )
77
79
@@ -93,9 +95,14 @@ def test_return_expected_df_when_get_local_path_return_none(self) -> None:
93
95
})
94
96
actual_df = self .service .swap_and_remove_path (self .test_df )
95
97
98
+ self .assertTrue (is_integer_dtype (actual_df ['num' ]))
96
99
assert_frame_equal (actual_df , expected_df )
97
100
self .assertEqual (self .m_get_local_path .call_count , 3 )
98
101
102
+ @skip ('Use unittest.skip' )
103
+ def test_tmp (self ) -> None :
104
+ pass
105
+
99
106
100
107
if __name__ == '__main__' :
101
108
main ()
You can’t perform that action at this time.
0 commit comments