We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f452bb commit 91a85f5Copy full SHA for 91a85f5
python_ci/src/tests/test_df_service.py
@@ -99,6 +99,19 @@ def test_return_expected_df_when_get_local_path_return_none(self) -> None:
99
assert_frame_equal(actual_df, expected_df)
100
self.assertEqual(self.m_get_local_path.call_count, 3)
101
102
+ def test_raise_attribute_error_when_no_image_hash(self) -> None:
103
+ self.m_get_local_path.return_value = '/opt/program/test_image.jpg'
104
+
105
+ bad_input_df = pd.DataFrame({
106
+ 'num': [1],
107
+ 'image_path': [
108
+ ['/opt/program/test_image.jpg'],
109
+ ]
110
+ })
111
112
+ with self.assertRaises(AttributeError):
113
+ self.service.swap_and_remove_path(bad_input_df)
114
115
@skip('Use unittest.skip')
116
def test_tmp(self) -> None:
117
pass
0 commit comments