sejm_interpellations: record the licence evidence, the SIS terms and quoted third-party text (v2#57)
#94
by ppuzio - opened
artifacts/source_findings.md
CHANGED
|
@@ -2277,3 +2277,23 @@ itself dropped. Kept 2011-2019 rows go from 1,697 to 1,281. Parquet sha256
|
|
| 2277 |
|
| 2278 |
**Not established** — the card's hand checks (12 of the post-2019 drops, 20 pairs at
|
| 2279 |
0.3-0.7) were made on the Hub PR 76 build and were not repeated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2277 |
|
| 2278 |
**Not established** — the card's hand checks (12 of the post-2019 drops, 20 pairs at
|
| 2279 |
0.3-0.7) were made on the Hub PR 76 build and were not repeated.
|
| 2280 |
+
|
| 2281 |
+
## sejm_interpellations — licence evidence and SIS caveat (2026-10-06)
|
| 2282 |
+
|
| 2283 |
+
**Finding** (slayerlabs/polish-dynaword-v2#57) — the source had no license-evidence.json. The
|
| 2284 |
+
Regulamin Sejmu places interpellations, replies and written questions in the System Informacyjny
|
| 2285 |
+
Sejmu (arts. 192 ust. 7, 193 ust. 2, 195 ust. 2), whose terms page asks for a source note and bars
|
| 2286 |
+
SIS material from commercial offers; nothing on api.sejm.gov.pl says its output is part of SIS.
|
| 2287 |
+
Replies are written by ministries. Questions quote third-party text (rights audit sample of 3,900:
|
| 2288 |
+
2.2% quote 400+ characters). The registry `added` was the 2026-07-19 fallback stamp, older than
|
| 2289 |
+
the data (last record 2026-09-03).
|
| 2290 |
+
|
| 2291 |
+
**Fix** — `sejm_interpellations.license-evidence.json` records both statutory bases with file
|
| 2292 |
+
hashes, the SIS wording (Wayback 2026-06-03), the placement articles, the reading that the
|
| 2293 |
+
commercial clause is not an Open Data Act art. 15 ust. 1 condition, and the third-party sample.
|
| 2294 |
+
The datasheet states the caveats and gives the requested source note; the registry `added` is
|
| 2295 |
+
2026-09-05 and the entry has a `legal_note`. The Parquet rows still carry the global `ADDED`
|
| 2296 |
+
(2026-07-19) until `build_dynaword.py` stamps the registry date (v2#80).
|
| 2297 |
+
|
| 2298 |
+
**Not established** — a lawyer's reading of the SIS terms; the SIS page on the fetch date (bot
|
| 2299 |
+
challenge); the Kancelaria Sejmu BIP reuse page; personal names (NERGAL, v2#60).
|
data/sejm_interpellations/sejm_interpellations.license-evidence.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": "sejm_interpellations",
|
| 3 |
+
"checked_at": "2026-10-06",
|
| 4 |
+
"license": "public-domain (official documents)",
|
| 5 |
+
"license_spdx": "LicenseRef-Polish-Official-Documents",
|
| 6 |
+
"status": "documented-statutory-basis-review-needed",
|
| 7 |
+
"provider": "Kancelaria Sejmu RP (api.sejm.gov.pl). Replies are written by ministers and other bodies, named in `author`.",
|
| 8 |
+
"official_source": "https://api.sejm.gov.pl/",
|
| 9 |
+
"official_source_documentation": "https://api.sejm.gov.pl/sejm.html",
|
| 10 |
+
"review_scope": "Licence basis, the System Informacyjny Sejmu (SIS) terms and third-party quotations, taken from the October 2026 rights audit (artifacts/rights_audit_2026-10/REVIEW.html, sejm_interpellations entry; reports/official.md; reports/citations/sejm_sis.md, read 2026-10-05). Nothing was re-fetched for this file. The source stays release: None until the NERGAL pass (slayerlabs/polish-dynaword-v2#60). V = read first-hand by the audit on the retrieval date; I = inferred, not verified, not lawyer-signed-off.",
|
| 11 |
+
"finding": "The texts are official parliamentary materials outside copyright (Copyright Act art. 4 pkt 2), reusable under the Open Data Act (I: no primary source states that the Kancelaria Sejmu is an obliged body). Two caveats. (1) The Regulamin Sejmu places interpellations, replies and written questions in SIS, and the Sejm's SIS page asks for a source note and bars SIS material from commercial offers; whether the page reaches API output, and whether the bar is enforceable under Open Data Act arts 14-17, are open (I). (2) Some questions quote constituents' letters and other third-party text; whether art. 4 pkt 2 reaches text quoted inside an official document is not settled (I).",
|
| 12 |
+
"copyright_basis": {
|
| 13 |
+
"mark": "V",
|
| 14 |
+
"act": "Ustawa o prawie autorskim i prawach pokrewnych, tekst jednolity, Dz.U. 2025 poz. 24",
|
| 15 |
+
"article": "art. 4 pkt 2",
|
| 16 |
+
"quote": "Art. 4. Nie stanowią przedmiotu prawa autorskiego: ... 2) urzędowe dokumenty, materiały, znaki i symbole;",
|
| 17 |
+
"url": "https://api.sejm.gov.pl/eli/acts/DU/2025/24/text.pdf",
|
| 18 |
+
"retrieved": "2026-10-05",
|
| 19 |
+
"sha256_of_file_as_read": "1c2e9a082a66fad6e26bba1d4d01a22bd67871657416729cea62b4b9f71cff86",
|
| 20 |
+
"hash_recorded_in": "data/ted_pl/ted_pl.license-evidence.json (basis_pl.copyright_act)"
|
| 21 |
+
},
|
| 22 |
+
"reuse_basis": {
|
| 23 |
+
"mark": "V (text); I (that the Kancelaria Sejmu is an obliged body under art. 3)",
|
| 24 |
+
"act": "Ustawa o otwartych danych i ponownym wykorzystywaniu informacji sektora publicznego, tekst jednolity, Dz.U. 2023 poz. 1524",
|
| 25 |
+
"articles": [
|
| 26 |
+
"art. 2 pkt 12",
|
| 27 |
+
"art. 3",
|
| 28 |
+
"art. 5 pkt 1",
|
| 29 |
+
"art. 6 ust. 2",
|
| 30 |
+
"art. 14 ust. 1",
|
| 31 |
+
"art. 15 ust. 1",
|
| 32 |
+
"art. 16",
|
| 33 |
+
"art. 17"
|
| 34 |
+
],
|
| 35 |
+
"quotes": {
|
| 36 |
+
"art_2_pkt_12": "wykorzystywanie przez użytkowników informacji sektora publicznego w jakimkolwiek celu",
|
| 37 |
+
"art_5_pkt_1": "Każdemu przysługuje prawo do ponownego wykorzystywania informacji sektora publicznego: 1) udostępnianych w Biuletynie Informacji Publicznej podmiotu zobowiązanego lub w portalu danych, lub w innym systemie teleinformatycznym podmiotu zobowiązanego;",
|
| 38 |
+
"art_14_ust_1": "Informacje sektora publicznego udostępnia się lub przekazuje w celu ponownego wykorzystywania bezwarunkowo, z wyjątkiem przypadków określonych w ustawie.",
|
| 39 |
+
"art_15_ust_1_pkt_1": "Podmiot zobowiązany może określić warunki ponownego wykorzystywania: 1) dotyczące obowiązku poinformowania o źródle, czasie wytworzenia i pozyskania informacji sektora publicznego od podmiotu zobowiązanego ...",
|
| 40 |
+
"art_16": "Określone przez podmiot zobowiązany warunki ponownego wykorzystywania są obiektywne, proporcjonalne, niedyskryminacyjne"
|
| 41 |
+
},
|
| 42 |
+
"url": "https://api.sejm.gov.pl/eli/acts/DU/2023/1524/text.pdf",
|
| 43 |
+
"retrieved": "2026-10-05",
|
| 44 |
+
"sha256_of_file_as_read": "54820a69c1b4e470cb372a22249558241bc68058ce447abbddfba1c61dd88f05",
|
| 45 |
+
"hash_recorded_in": "data/ted_pl/ted_pl.license-evidence.json (basis_pl.open_data_act)",
|
| 46 |
+
"reading": "Art. 15 ust. 1 is the closed list of conditions an obliged body may set (source and time, processing, liability, personal data) and art. 16 limits them: they bound any conditions, they are not a separate grant. No primary source says the Kancelaria Sejmu is an obliged body; none of the art. 4 exclusions names it (I). Source: artifacts/rights_audit_2026-10/reports/citations/sejm_sis.md L3-L10."
|
| 47 |
+
},
|
| 48 |
+
"sis_terms": {
|
| 49 |
+
"mark": "V (wording, placement); I (reach to the API, enforceability)",
|
| 50 |
+
"page": "System Informacyjny Sejmu, www.sejm.gov.pl (Sejm10.nsf/page.xsp/copyright)",
|
| 51 |
+
"url": "https://sejm.gov.pl/Sejm10.nsf/page.xsp/copyright",
|
| 52 |
+
"wayback": "http://web.archive.org/web/20260603115729/https://sejm.gov.pl/Sejm10.nsf/page.xsp/copyright",
|
| 53 |
+
"retrieved": "2026-10-05",
|
| 54 |
+
"note_on_capture": "Latest readable capture. The live page and the 2026-09-07 capture are bot-challenge pages (not bypassed), so the wording on the fetch date is not verified.",
|
| 55 |
+
"quotes": {
|
| 56 |
+
"grant": "Zezwala się na bezpłatne wykorzystywanie materiałów znajdujących się w Systemie Informacyjnym Sejmu, z ograniczeniami przedstawionymi poniżej",
|
| 57 |
+
"source_note_scope": "przy wszystkich materiałach (video, audio czy tekstowych) pobieranych ze strony www.sejm.gov.pl powinna znajdować się informacja o źródle pochodzenia",
|
| 58 |
+
"source_note_wording": "Źródłem tym jest System Informacyjny Sejmu",
|
| 59 |
+
"commercial_offer": "materiały zamieszczone w SIS, w szczególności ... iTV Sejm, nie mogą być elementem komercyjnej oferty żadnej agencji"
|
| 60 |
+
},
|
| 61 |
+
"placement_in_sis": {
|
| 62 |
+
"mark": "V",
|
| 63 |
+
"act": "Regulamin Sejmu, tekst jednolity M.P. 2026 poz. 573",
|
| 64 |
+
"articles": [
|
| 65 |
+
"art. 192 ust. 7 (interpellations)",
|
| 66 |
+
"art. 193 ust. 2 (replies)",
|
| 67 |
+
"art. 195 ust. 2 (written questions, by cross-reference)"
|
| 68 |
+
],
|
| 69 |
+
"quote": "teksty interpelacji, którym Prezydium Sejmu nadało bieg, są udostępniane w Systemie Informacyjnym Sejmu"
|
| 70 |
+
},
|
| 71 |
+
"api_channel": "V: the API documentation, response headers and a sampled interpellation body (term 10, no. 1) carry no terms. No source states that API output is part of SIS; SIS is defined as the www.sejm.gov.pl system (Regulamin art. 201a; Zarządzenie Szefa KS 3/2006 § 1).",
|
| 72 |
+
"reading": "I: the commercial-offer clause is not among the conditions Open Data Act art. 15 ust. 1 allows and runs against arts 14 ust. 1, 16 and 17; it could bind only through rights the Kancelaria holds (art. 14 ust. 2), and replies are written by ministries, not the Kancelaria. The source-note clause fits art. 15 ust. 1 pkt 1; the datasheet carries the requested wording as a precaution.",
|
| 73 |
+
"source": "artifacts/rights_audit_2026-10/reports/citations/sejm_sis.md (W1-W4, D1, D4, D7, C1-C5, L7-L15)"
|
| 74 |
+
},
|
| 75 |
+
"third_party_quotations": {
|
| 76 |
+
"mark": "as reported by the audit (marked V there); its sample ids and seed are not in the repo",
|
| 77 |
+
"sample_documents": 3900,
|
| 78 |
+
"share_quoting_400_plus_chars": "2.2%",
|
| 79 |
+
"share_quoting_constituents": "2.9%",
|
| 80 |
+
"share_matching_pan_pani_name": "about 4%",
|
| 81 |
+
"source": "artifacts/rights_audit_2026-10/reports/official.md:29",
|
| 82 |
+
"reading": "I: a question that quotes a constituent's letter or a press article carries that third party's text. Art. 4 pkt 2 excludes the official document; whether the exclusion reaches text quoted inside it is not settled. These documents are not filtered."
|
| 83 |
+
},
|
| 84 |
+
"limitations": [
|
| 85 |
+
"privacy: constituency casework names private persons (Open Data Act art. 6 ust. 2); a NERGAL pass is required before release (slayerlabs/polish-dynaword-v2#60)",
|
| 86 |
+
"third-party text quoted in questions (third_party_quotations)",
|
| 87 |
+
"SIS terms: source note and commercial-offer clause (sis_terms)",
|
| 88 |
+
"replies that exist only as PDF attachments (onlyAttachment) are not in the shard",
|
| 89 |
+
"no upstream Creative Commons grant is asserted"
|
| 90 |
+
],
|
| 91 |
+
"not_checked": [
|
| 92 |
+
"lawyer review of the statutory basis and of the SIS terms",
|
| 93 |
+
"the live SIS page on the fetch date (bot challenge; latest readable capture 2026-06-03)",
|
| 94 |
+
"the Kancelaria Sejmu BIP 'Ponowne wykorzystywanie' page (bip.sejm.gov.pl did not connect; Wayback answered 429)",
|
| 95 |
+
"whether the API interpellation bodies are the same documents as those on www.sejm.gov.pl",
|
| 96 |
+
"the exact fetch date: 2026-09-05 is inferred from the findings log, the input file date and the last record (2026-09-03)",
|
| 97 |
+
"the ids and seed of the audit's 3,900-document sample",
|
| 98 |
+
"personal names: NERGAL pass pending (slayerlabs/polish-dynaword-v2#60)"
|
| 99 |
+
]
|
| 100 |
+
}
|
data/sejm_interpellations/sejm_interpellations.md
CHANGED
|
@@ -23,6 +23,27 @@ public-sector information is governed by the Polish Open Data Act arts. 2(12),
|
|
| 23 |
5, 14 and 17 (https://eli.gov.pl/api/acts/DU/2023/1524/text.html). Same basis
|
| 24 |
as the shipped `sejm_api` shard. No Creative Commons grant is asserted.
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
## What the texts are
|
| 27 |
|
| 28 |
Written questions from MPs to ministers (`interpellations`,
|
|
|
|
| 23 |
5, 14 and 17 (https://eli.gov.pl/api/acts/DU/2023/1524/text.html). Same basis
|
| 24 |
as the shipped `sejm_api` shard. No Creative Commons grant is asserted.
|
| 25 |
|
| 26 |
+
Caveats (quotes, URLs and hashes in `sejm_interpellations.license-evidence.json`;
|
| 27 |
+
not lawyer-reviewed):
|
| 28 |
+
|
| 29 |
+
- **SIS terms.** The Regulamin Sejmu places interpellations, replies and written
|
| 30 |
+
questions in the System Informacyjny Sejmu (arts. 192 ust. 7, 193 ust. 2,
|
| 31 |
+
195 ust. 2). The Sejm's SIS page asks for a source note on material taken from
|
| 32 |
+
www.sejm.gov.pl and bars SIS material from being part of a commercial offer of
|
| 33 |
+
any agency, TV station, portal or other entity. No terms were found on
|
| 34 |
+
api.sejm.gov.pl, in its documentation or in a sampled body, and no source says
|
| 35 |
+
that API output is part of SIS. The commercial clause is not among the
|
| 36 |
+
conditions Open Data Act art. 15 ust. 1 allows (see also arts. 14 ust. 1, 16
|
| 37 |
+
and 17), so whether it binds is doubtful. As a precaution, the requested source
|
| 38 |
+
note: Źródłem tym jest System Informacyjny Sejmu.
|
| 39 |
+
- **Replies** are written by ministries and other bodies (named in `author`),
|
| 40 |
+
not by the Kancelaria Sejmu.
|
| 41 |
+
- **Third-party quotations.** In the rights audit's 3,900-document sample, 2.2%
|
| 42 |
+
quote 400+ characters, 2.9% quote constituents and about 4% match a
|
| 43 |
+
"Pan/Pani <Name>" pattern. Whether art. 4 pkt 2 reaches third-party text
|
| 44 |
+
quoted inside an official document is not settled; these documents are not
|
| 45 |
+
filtered.
|
| 46 |
+
|
| 47 |
## What the texts are
|
| 48 |
|
| 49 |
Written questions from MPs to ministers (`interpellations`,
|
src/sources.py
CHANGED
|
@@ -323,7 +323,7 @@ SOURCES = {
|
|
| 323 |
"is_ocr": False,
|
| 324 |
},
|
| 325 |
"sejm_interpellations": {
|
| 326 |
-
"added": "2026-
|
| 327 |
"release": None,
|
| 328 |
"file_key": "sejm_interpellations",
|
| 329 |
"pretty": "Sejm interpellations and written questions (10th term)",
|
|
@@ -331,7 +331,19 @@ SOURCES = {
|
|
| 331 |
"license_spdx": "LicenseRef-Polish-Official-Documents",
|
| 332 |
"traceable": "Official parliamentary materials excluded from copyright "
|
| 333 |
"under Polish Copyright Act art. 4(2); reusable under "
|
| 334 |
-
"the Polish Open Data Act arts. 2(12), 5, 14 and 17."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
"upstream": "https://api.sejm.gov.pl/",
|
| 336 |
"provenance": "Fetched from api.sejm.gov.pl HTML body endpoints by "
|
| 337 |
"src/fetch_sejm_interpellations.py (interpellations + "
|
|
|
|
| 323 |
"is_ocr": False,
|
| 324 |
},
|
| 325 |
"sejm_interpellations": {
|
| 326 |
+
"added": "2026-09-05",
|
| 327 |
"release": None,
|
| 328 |
"file_key": "sejm_interpellations",
|
| 329 |
"pretty": "Sejm interpellations and written questions (10th term)",
|
|
|
|
| 331 |
"license_spdx": "LicenseRef-Polish-Official-Documents",
|
| 332 |
"traceable": "Official parliamentary materials excluded from copyright "
|
| 333 |
"under Polish Copyright Act art. 4(2); reusable under "
|
| 334 |
+
"the Polish Open Data Act arts. 2(12), 5, 14 and 17. "
|
| 335 |
+
"Caveats (SIS terms, ministry-authored replies, quoted "
|
| 336 |
+
"third-party text), quotes and hashes: "
|
| 337 |
+
"data/sejm_interpellations/sejm_interpellations.license-evidence.json.",
|
| 338 |
+
"legal_note": "Not lawyer-signed-off. The Regulamin Sejmu places these texts "
|
| 339 |
+
"in the System Informacyjny Sejmu, whose terms page "
|
| 340 |
+
"(www.sejm.gov.pl) asks for a source note and bars SIS material "
|
| 341 |
+
"from commercial offers; whether it reaches API output and "
|
| 342 |
+
"whether the bar is enforceable under Open Data Act arts. 14-17 "
|
| 343 |
+
"are open. Replies are written by ministries, not the Kancelaria. "
|
| 344 |
+
"Some questions quote third-party text (2.2% of a 3,900-document "
|
| 345 |
+
"audit sample quote 400+ characters). Admission waits for the "
|
| 346 |
+
"NERGAL pass (v2#60).",
|
| 347 |
"upstream": "https://api.sejm.gov.pl/",
|
| 348 |
"provenance": "Fetched from api.sejm.gov.pl HTML body endpoints by "
|
| 349 |
"src/fetch_sejm_interpellations.py (interpellations + "
|
src/test_sejm_interpellations_contract.py
CHANGED
|
@@ -9,6 +9,8 @@ sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
| 9 |
ROOT = Path(__file__).resolve().parent.parent
|
| 10 |
PARQUET = ROOT / "data" / "sejm_interpellations" / "sejm_interpellations.parquet"
|
| 11 |
STATS = ROOT / "data" / "sejm_interpellations" / "sejm_interpellations.stats.json"
|
|
|
|
|
|
|
| 12 |
CANON = ["id", "text", "source", "added", "created", "token_count", "license", "author"]
|
| 13 |
|
| 14 |
from fetch_sejm_interpellations import (
|
|
@@ -151,5 +153,39 @@ class SejmInterpellationsParquetTest(unittest.TestCase):
|
|
| 151 |
self.assertEqual(self.stats["authors_with_value"], self.tbl.num_rows)
|
| 152 |
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
if __name__ == "__main__":
|
| 155 |
unittest.main()
|
|
|
|
| 9 |
ROOT = Path(__file__).resolve().parent.parent
|
| 10 |
PARQUET = ROOT / "data" / "sejm_interpellations" / "sejm_interpellations.parquet"
|
| 11 |
STATS = ROOT / "data" / "sejm_interpellations" / "sejm_interpellations.stats.json"
|
| 12 |
+
EVIDENCE = ROOT / "data" / "sejm_interpellations" / "sejm_interpellations.license-evidence.json"
|
| 13 |
+
CARD = ROOT / "data" / "sejm_interpellations" / "sejm_interpellations.md"
|
| 14 |
CANON = ["id", "text", "source", "added", "created", "token_count", "license", "author"]
|
| 15 |
|
| 16 |
from fetch_sejm_interpellations import (
|
|
|
|
| 153 |
self.assertEqual(self.stats["authors_with_value"], self.tbl.num_rows)
|
| 154 |
|
| 155 |
|
| 156 |
+
class SejmInterpellationsRecordsTest(unittest.TestCase):
|
| 157 |
+
"""Registry, datasheet and license-evidence.json agree (v0.2.6 rights audit, v2#57)."""
|
| 158 |
+
|
| 159 |
+
@classmethod
|
| 160 |
+
def setUpClass(cls):
|
| 161 |
+
from sources import SOURCES
|
| 162 |
+
cls.entry = SOURCES["sejm_interpellations"]
|
| 163 |
+
cls.evidence = json.loads(EVIDENCE.read_text(encoding="utf-8"))
|
| 164 |
+
cls.card = CARD.read_text(encoding="utf-8")
|
| 165 |
+
|
| 166 |
+
def test_evidence_matches_registry(self):
|
| 167 |
+
self.assertEqual(self.evidence["source"], "sejm_interpellations")
|
| 168 |
+
self.assertEqual(self.evidence["license"], self.entry["license"])
|
| 169 |
+
self.assertEqual(self.evidence["license_spdx"], self.entry["license_spdx"])
|
| 170 |
+
self.assertIn(EVIDENCE.relative_to(ROOT).as_posix(), self.entry["traceable"])
|
| 171 |
+
self.assertIn("NERGAL", self.entry["legal_note"])
|
| 172 |
+
|
| 173 |
+
def test_evidence_records_the_caveats(self):
|
| 174 |
+
sis = self.evidence["sis_terms"]
|
| 175 |
+
self.assertTrue(sis["wayback"].startswith("http://web.archive.org/web/2026"))
|
| 176 |
+
self.assertIn("komercyjnej oferty", sis["quotes"]["commercial_offer"])
|
| 177 |
+
self.assertEqual(self.evidence["third_party_quotations"]["sample_documents"], 3900)
|
| 178 |
+
for basis in ("copyright_basis", "reuse_basis"):
|
| 179 |
+
self.assertRegex(self.evidence[basis]["sha256_of_file_as_read"], r"^[0-9a-f]{64}$")
|
| 180 |
+
self.assertTrue(self.evidence["not_checked"])
|
| 181 |
+
|
| 182 |
+
def test_card_states_the_caveats_and_the_registry_date(self):
|
| 183 |
+
self.assertIn(f"**Added:** {self.entry['added']}", self.card)
|
| 184 |
+
sis_note = "Źródłem tym jest System Informacyjny Sejmu"
|
| 185 |
+
self.assertIn(sis_note, self.card)
|
| 186 |
+
self.assertEqual(self.evidence["sis_terms"]["quotes"]["source_note_wording"], sis_note)
|
| 187 |
+
self.assertIn(EVIDENCE.name, self.card)
|
| 188 |
+
|
| 189 |
+
|
| 190 |
if __name__ == "__main__":
|
| 191 |
unittest.main()
|