Test error handling with invalid data
(self)
| 32 | self.assertIsNotNone(result.signals) |
| 33 | |
| 34 | def test_error_handling(self): |
| 35 | """Test error handling with invalid data""" |
| 36 | # Create invalid dataframe (missing required columns) |
| 37 | invalid_data = pd.DataFrame({ |
| 38 | 'wrong_column': [1, 2, 3] |
| 39 | }) |
| 40 | |
| 41 | with self.assertRaises(ProcessingError): |
| 42 | self.processor.process_market_data(invalid_data) |
| 43 | |
| 44 | def test_empty_data(self): |
| 45 | """Test handling of empty data""" |
nothing calls this directly
no test coverage detected