MCPcopy Create free account
hub / github.com/1rgs/claude-code-proxy / main

Function main

tests.py:697–713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

695 return False
696
697async def main():
698 # Check that API key is set
699 if not ANTHROPIC_API_KEY:
700 print("Error: ANTHROPIC_API_KEY not set in .env file")
701 return
702
703 # Parse command-line arguments
704 parser = argparse.ArgumentParser(description="Test the Claude-on-OpenAI proxy")
705 parser.add_argument("--no-streaming", action="store_true", help="Skip streaming tests")
706 parser.add_argument("--streaming-only", action="store_true", help="Only run streaming tests")
707 parser.add_argument("--simple", action="store_true", help="Only run simple tests (no tools)")
708 parser.add_argument("--tools-only", action="store_true", help="Only run tool tests")
709 args = parser.parse_args()
710
711 # Run tests
712 success = await run_tests(args)
713 sys.exit(0 if success else 1)
714
715if __name__ == "__main__":
716 asyncio.run(main())

Callers 1

tests.pyFile · 0.85

Calls 1

run_testsFunction · 0.85

Tested by

no test coverage detected