pytest-socket

v0.8.1 safe
1.8
Low Risk

Pytest Plugin to disable socket calls during tests

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 11 test file(s) found

  • Test runner config found: pyproject.toml
  • Test runner config found: conftest.py
  • 11 test file(s) detected (e.g. __init__.py)
  • Classifier: Framework :: Pytest
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (5726 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 7.0

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • 21 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • "A test tried to use socket.socket.connect() " f'with host "{host}" (allowed: "{allowed_str
  • pecified hosts through socket.socket.connect((host, port)).", ) group.addoption( "--allow
  • > None: """disable socket.socket.connect() to disable the Internet. useful in testing.""" if isin
  • 't blocked sock = socket.create_connection((host, 443), timeout=5) sock.close() de
  • "A test tried to use socket.socket.connect() with host*" ) @unix_sockets_only def test_combine_un
  • f'*A test tried to use socket.socket.connect() with host "{host}"*' ) @pytest.fixture def assert_co
⚠ Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • ror``. """ restored = pickle.loads(pickle.dumps(exc)) assert type(restored) is type(exc)
✓ Shell / Subprocess Execution

No shell execution patterns detected

✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://opensource.org/licenses/MIT
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Mike Fiedler" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with pytest-socket
Build a simple Python application using the pytest-socket package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!