Main test function
()
| 230 | return True |
| 231 | |
| 232 | def main(): |
| 233 | """Main test function""" |
| 234 | print("🧪 Testing Ocean Hazard System Python Pipeline") |
| 235 | print("=" * 60) |
| 236 | |
| 237 | # Test imports |
| 238 | if not test_imports(): |
| 239 | print("\n❌ Import tests failed") |
| 240 | sys.exit(1) |
| 241 | |
| 242 | # Test text cleaning |
| 243 | if not test_text_cleaning(): |
| 244 | print("\n❌ Text cleaning tests failed") |
| 245 | sys.exit(1) |
| 246 | |
| 247 | # Test hazard classification |
| 248 | if not test_hazard_classification(): |
| 249 | print("\n❌ Hazard classification tests failed") |
| 250 | sys.exit(1) |
| 251 | |
| 252 | # Test sentiment analysis |
| 253 | if not test_sentiment_analysis(): |
| 254 | print("\n❌ Sentiment analysis tests failed") |
| 255 | sys.exit(1) |
| 256 | |
| 257 | # Test complete pipeline |
| 258 | if not test_data_processing(): |
| 259 | print("\n❌ Data processing pipeline tests failed") |
| 260 | sys.exit(1) |
| 261 | |
| 262 | print("\n" + "=" * 60) |
| 263 | print("🎉 All tests passed! Python pipeline is working correctly.") |
| 264 | print("\nThe data processing pipeline is ready to use!") |
| 265 | |
| 266 | if __name__ == "__main__": |
| 267 | main() |
no test coverage detected