MCPcopy Create free account
hub / github.com/ashfawk/oceanhazard-detection / main

Function main

test_python_pipeline.py:232–264  ·  view source on GitHub ↗

Main test function

()

Source from the content-addressed store, hash-verified

230 return True
231
232def 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
266if __name__ == "__main__":
267 main()

Callers 1

Calls 5

test_text_cleaningFunction · 0.85
test_sentiment_analysisFunction · 0.85
test_data_processingFunction · 0.85
test_importsFunction · 0.70

Tested by

no test coverage detected