🕵️♂️ (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.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
add: new tests for version.py
kaifcodeca117db401e1d
diff --git a/tests/test_version.py b/tests/test_version.pynew file mode 100644index 0000000..bf8dc01--- /dev/null+++ b/tests/test_version.py@@ -0,0 +1,21 @@+import json+from types import SimpleNamespace+from user_scanner.core import version+import pytest+++def test_load_local_version(tmp_path, monkeypatch):+ vf = tmp_path / "version.json"+ vf.write_text(json.dumps({"version": "9.9.9", "version_type": "local"}))+ monkeypatch.setattr(version, "VERSION_FILE", vf)+ ver, typ = version.load_local_version()+ assert ver == "9.9.9"+ assert typ == "local"+++def test_get_pypi_version(monkeypatch):+ # Mock httpx.get to return an object with .json()+ monkeypatch.setattr(version.httpx, "get",+ lambda url, timeout=7: SimpleNamespace(json=lambda: {"info": {"version": "1.2.3"}}))+ pv = version.get_pypi_version("http://fake")+ assert pv == "1.2.3"