Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion maigret/resources/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -15117,7 +15117,7 @@
"urlMain": "https://tuna.voicemod.net/",
"checkType": "status_code",
"regexCheck": "^[a-z0-9]{4,40}$",
"usernameClaimed": "bob",
"usernameClaimed": "admin",
"usernameUnclaimed": "noonewouldeverusethis7",
"tags": [
"apps",
Expand Down
6 changes: 3 additions & 3 deletions maigret/resources/db_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 1,
"updated_at": "2026-12-01T16:59:44Z",
"updated_at": "2026-12-02T12:03:07Z",
"sites_count": 16668,
"min_maigret_version": "0.5.0",
"data_sha256": "cceeaa2baa760de44c4ea11e94a6a99725bf0fe031b142b46ed233f8e528667c",
"data_sha256": "d160fe8c7cdc8e49f0c21942fb6166132320835aa8422dca03d0f1b996c70bd6",
"data_url": "https://raw.githubusercontent.com/soxoj/maigret/main/maigret/resources/data.json"
}
}
17 changes: 17 additions & 0 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@ def test_social_networks_have_social_tag(default_db):
)


def test_claimed_username_passes_the_site_regex(default_db):
"""Maigret skips a username that fails a site's regexCheck, so a site whose
usernameClaimed fails its own regex can never pass --self-check, and the
regex is probably wrong or the claimed account is stale."""
import re

bad = [
(site.name, site.regex_check, site.username_claimed)
for site in default_db.sites
if not site.disabled
and site.regex_check
and site.username_claimed
and not re.search(site.regex_check, site.username_claimed)
]
assert not bad, bad


def test_planetaexcel_does_not_pin_bot_user_agent(default_db):
"""Planetaexcel is filtered by an Anubis bot rule that serves an HTTP 200
'Access Denied' page to the python-requests User-Agent, which a
Expand Down