MCPcopy Create free account
hub / github.com/GH05TCREW/MetasploitMCP / check_dependencies

Function check_dependencies

run_tests.py:33–44  ·  view source on GitHub ↗

Check if test dependencies are installed.

()

Source from the content-addressed store, hash-verified

31 return False
32
33def check_dependencies():
34 """Check if test dependencies are installed."""
35 try:
36 import pytest
37 import pytest_asyncio
38 import pytest_mock
39 import pytest_cov
40 return True
41 except ImportError as e:
42 print(f"❌ Missing test dependency: {e}")
43 print("💡 Install test dependencies with: pip install -r requirements-test.txt")
44 return False
45
46def main():
47 parser = argparse.ArgumentParser(description="MetasploitMCP Test Runner")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected