tests: add unit test infrastructure

pytest-based test suite with fixtures for database testing.
Covers misc.py utilities, dbs.py operations, and fetch.py validation.
Includes mock_network.py for future network testing.
This commit is contained in:
Username
2026-01-08 01:42:38 +01:00
parent c1ec5d593b
commit 44604f1ce3
9 changed files with 1490 additions and 0 deletions

5
tests/fixtures/sample_json.txt vendored Normal file
View File

@@ -0,0 +1,5 @@
[
{"ip": "1.2.3.4", "port": 8080, "type": "socks5"},
{"ip": "5.6.7.8", "port": 3128, "type": "http"},
{"host": "9.10.11.12", "port": 1080, "protocol": "socks4"}
]