MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / main

Function main

tests/test_report_tool.py:119–160  ·  view source on GitHub ↗

Main test function

()

Source from the content-addressed store, hash-verified

117
118
119async def main():
120 """Main test function"""
121 print("\n" + "="*60)
122 print("📊 Report Tool Test Suite")
123 print("="*60)
124
125 # Check environment variables
126 print("\n🔍 Checking environment variables...")
127 required_vars = ["OPENAI_API_KEY", "TAVILY_API_KEY"]
128 missing_vars = [var for var in required_vars if not os.getenv(var)]
129
130 if missing_vars:
131 print(f"⚠️ Missing environment variables: {', '.join(missing_vars)}")
132 print("Please set them in your .env file or environment")
133 print("\nRequired variables:")
134 print(" - OPENAI_API_KEY (or REPORT_ENGINE_API_KEY)")
135 print(" - TAVILY_API_KEY")
136 print("\nOptional variables:")
137 print(" - OPENAI_BASE_URL (or REPORT_ENGINE_BASE_URL)")
138 print(" - OPENAI_MODEL_NAME (or REPORT_ENGINE_MODEL_NAME)")
139 else:
140 print("✅ All required environment variables are set")
141
142 # Run tests
143 try:
144 # Test 1: Direct tool invocation
145 await test_direct_tool_invocation()
146
147 # Test 2: Custom output path
148 await test_with_custom_output_path()
149
150 # Test 3: Standalone execution info
151 test_standalone_execution()
152
153 except Exception as e:
154 print(f"\n❌ Test suite error: {e}")
155 import traceback
156 traceback.print_exc()
157
158 print("\n" + "="*60)
159 print("✅ Test suite completed!")
160 print("="*60)
161
162
163if __name__ == "__main__":

Callers 1

Calls 5

printFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected