diff --git a/test_extract_link.py b/check_extract_link.py similarity index 82% rename from test_extract_link.py rename to check_extract_link.py index 43f7232..ccbb0a3 100644 --- a/test_extract_link.py +++ b/check_extract_link.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 """ -Test-Script: Mail abrufen und Link extrahieren. +Hilfsskript (manuell, KEIN pytest-Test): Mail abrufen und Link extrahieren. Verwendung: - python test_extract_link.py eg5gyqjqp5@web-library.net TOKEN_HIER + python check_extract_link.py eg5gyqjqp5@web-library.net TOKEN_HIER oder: Token aus app.py Step 1 Tabelle kopieren """ @@ -13,7 +13,7 @@ import json from mailtm import list_messages, get_message_html from core import extract_form_link -def test_extract(email, token): +def run_extract(email, token): print(f"📧 Abrufen von Mails fuer: {email}") print(f"🔑 Token: {token[:20]}...") print() @@ -59,12 +59,12 @@ def test_extract(email, token): if __name__ == "__main__": if len(sys.argv) < 3: print("Verwendung:") - print(" python test_extract_link.py EMAIL TOKEN") + print(" python check_extract_link.py EMAIL TOKEN") print() print("Beispiel:") - print(" python test_extract_link.py eg5gyqjqp5@web-library.net abc123xyz...") + print(" python check_extract_link.py eg5gyqjqp5@web-library.net abc123xyz...") sys.exit(1) email = sys.argv[1] token = sys.argv[2] - test_extract(email, token) + run_extract(email, token)