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:
31
tests/fixtures/sample_html.txt
vendored
Normal file
31
tests/fixtures/sample_html.txt
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>Free Proxy List</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<th>IP Address</th>
|
||||
<th>Port</th>
|
||||
<th>Type</th>
|
||||
<th>Country</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1.2.3.4</td>
|
||||
<td>8080</td>
|
||||
<td>SOCKS5</td>
|
||||
<td>US</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5.6.7.8</td>
|
||||
<td>3128</td>
|
||||
<td>HTTP</td>
|
||||
<td>DE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9.10.11.12</td>
|
||||
<td>1080</td>
|
||||
<td>SOCKS4</td>
|
||||
<td>FR</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user