fixes: immunity outcomes without political connection, ORF fee rows, dropped WKStA investigations
- parlament.items (parser 3): a committee finding of no connection to the political activity (Art. 57 Abs. 3 B-VG) means prosecution may proceed; it was left at 'requested'. Authority and case number no longer run into the following sentence on older reports. - rtr.medientransparenz (parser 2): notice type 31 is the ORF's licence-fee income under section 31 ORF-G, not a payment to an organisation named after the paragraph. - enrich.legal: 'Einstellung der Ermittlungen' is proceedings_dropped, not an investigation. - reparse -p kinds=a,b replays only responses of these request kinds (no stale sweep then). - migration 0010 removes the wrong ORF rows and organisations and re-queues the affected headlines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d2039a9dc3
commit
f2d72fe464
8 files changed
+130
-7
No files matched your search
@@ -135,3 +135,38 @@ def test_event_records_use_the_date_from_the_sentence():
|
||||
claim = next(r for r in records if isinstance(r, Claim))
|
||||
assert event.starts_at == claim.occurred_at == date(2026, 11, 11)
|
||||
assert claim.data["date_precision"] == "day"
|
||||
|
||||
|
||||
IMMUNITY_NO_CONNECTION = (
|
||||
"Bericht des Immunitätsausschusses über das Ersuchen der Staatsanwaltschaft Wien, do. GZ. 501 St 68/24k, um "
|
||||
"Zustimmung zur behördlichen Verfolgung des Abgeordneten zum Nationalrat Mag. Dr. Martin Graf gemäß Art. 57 Abs. 3 "
|
||||
"B-VG Die Staatsanwaltschaft Wien ersucht ... wegen des Verdachtes einer strafbaren Handlung nach § 3g Abs. 1 und "
|
||||
"Abs. 2 VerbotsG. ... Als Ergebnis seiner Beratungen stellt der Immunitätsausschuss somit den Antrag , der Nationalrat "
|
||||
"wolle beschließen: In Behandlung des Ersuchens der Staatsanwaltschaft Wien (GZ 501 St 68/24k) um Zustimmung ... wird "
|
||||
"im Sinne des Art. 57 Abs. 3 B‑VG festgestellt, dass kein Zusammenhang zwischen der inkriminierten Handlung und der "
|
||||
"politischen Tätigkeit des Abgeordneten zum Nationalrat Mag. Dr. Martin Graf besteht. Wien, 2024 12 11"
|
||||
)
|
||||
|
||||
|
||||
def test_immunity_without_political_connection_allows_prosecution():
|
||||
r = parse_immunity_report(IMMUNITY_NO_CONNECTION)
|
||||
assert r["recommendation"] == "no_connection" and r["political_connection"] is False
|
||||
assert r["offense"] == "§ 3g Abs. 1 und Abs. 2 VerbotsG"
|
||||
assert r["quote"].endswith("Martin Graf besteht.")
|
||||
|
||||
|
||||
def test_immunity_authority_and_case_number_in_brackets():
|
||||
# older reports: "Ersuchen der Staatsanwaltschaft Wien (GZ 25 St 407/08i) um Zustimmung ..."
|
||||
r = parse_immunity_report("Bericht über das Ersuchen der Staatsanwaltschaft Wien (GZ 25 St 407/08i) um Zustimmung zur "
|
||||
"behördlichen Verfolgung des Abgeordneten Mag. Dr. Martin Graf Die Staatsanwaltschaft Wien "
|
||||
"ersucht mit Schreiben vom 29. Jänner 2009, GZ 25 St 407/08i, um Zustimmung")
|
||||
assert (r["authority"], r["case_ref"]) == ("Staatsanwaltschaft Wien", "25 St 407/08i")
|
||||
r = parse_immunity_report("Ersuchen des Magistrats der Stadt Wien (GZ. MBA/210000025592/2021) um Zustimmung")
|
||||
assert (r["authority"], r["case_ref"]) == ("Magistrats der Stadt Wien", "MBA/210000025592/2021")
|
||||
|
||||
|
||||
def test_dropped_investigation_is_not_an_investigation():
|
||||
assert classify("Verfahrenskomplex CASAG / Anzeige wegen Falschaussage: Einstellung von Ermittlungen gegen Thomas "
|
||||
"Schmid") == "proceedings_dropped"
|
||||
assert classify("Einstellungen der Ermittlungen gegen zwei Beschuldigte") == "proceedings_dropped"
|
||||
assert classify("Causa Inserate: Weitere Ermittlungen") == "investigation"
|
||||
@@ -235,3 +235,15 @@ def test_speech_segments_end_at_next_ru_anchor_or_chair():
|
||||
assert seg["RU_1"].startswith("Abgeordnete Anna Eins (Grüne): Erste Rede.") and "Vorsitz" not in seg["RU_1"]
|
||||
assert seg["RU_2"].startswith("Abgeordneter Bernd Zwei (SPÖ): Zweite Rede.")
|
||||
assert "RU_2" in seg and len(seg["RU_2"]) < 200_000 # the rest of the session protocol is not one speech
|
||||
|
||||
|
||||
def test_orf_fee_report_is_orf_income_not_a_payment_to_a_medium():
|
||||
from politrack.sources.rtr import MediaTransparency
|
||||
claim = MediaTransparency.orf_fee({"rechtstraeger": "Österreichischer Rundfunk", "bekanntgabe": 31,
|
||||
"mediumMedieninhaber": "Programmentgelt gemäß § 31 Abs. 1 ORF-G"},
|
||||
176200000.0, "2023-Q3", "20233")
|
||||
assert claim.org.name == "Österreichischer Rundfunk" and claim.counterpart_org is None
|
||||
assert claim.facet.payee.name == "Österreichischer Rundfunk" and claim.facet.payer is None
|
||||
assert claim.facet.payer_name == "Programmentgelt gemäß § 31 Abs. 1 ORF-G" and claim.facet.category == "orf_fee"
|
||||
assert claim.summary_de == ("Österreichischer Rundfunk: Einnahmen aus Programmentgelt gemäß § 31 Abs. 1 ORF-G, "
|
||||
"176.200.000,00 € (2023-Q3)")
|
||||
Reference in new issue
Block a user