Skip to content

🕵️‍♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.

docs: add architectural docstring to engine tests

kaifcodec79723edffaef
diff --git a/tests/test_engine.py b/tests/test_engine.py
index 13ca3b2..9f96542 100644
--- a/tests/test_engine.py
+++ b/tests/test_engine.py
@@ -1,3 +1,19 @@
+"""
+user-scanner Engine Unit Tests
+
+This suite tests the core orchestration logic of 'engine.py'.
+It verifies:
+1. Automated mode detection (Email vs Username) based on file paths.
+2. Metadata enrichment (Site Name, Category) of Result objects.
+3. Execution flow for both sync and async module validation functions.
+4. Error handling and result flattening for batch/category scans.
+
+Note: These tests use Mocking and Stubs (via unittest.mock and pytest-monkeypatch)
+to isolate the engine from the network. No actual API requests are performed.
+
+"""
+
+
import pytest
from types import ModuleType
from user_scanner.core import engine