Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Need new Mapbox Tilejson Unit tests

Aperta
#450 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing-qa

Direzione di ricerca

Inizia esaminando tests/data/fixtures.json e la probe GeoHealthCheck.plugins.probe.mapbox.TileJSON, quindi cerca un endpoint TileJSON pubblico e stabile che non richieda una chiave. Il lavoro è completato quando sono stati ripristinati fixture rappresentativi per risorse, probe e controlli HTTP ed è stata aggiunta la copertura dei test unitari per l'endpoint.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Is your feature request related to a problem? Please describe.
PR #449 had to remove a stale URL that was a public "TileJSON" endpoint for MapBox Vector Tiles in the Dutch SDI PDOK:
https://geodata.nationaalgeoregister.nl/beta/topotiles-viewer/styles/tilejson.json
There is no direct replacement URL as PDOK has changed to OGC API Vector Tiles APIs.

Describe the solution you'd like
Somehow we need an endpoint to test the GHC Probe GeoHealthCheck.plugins.probe.mapbox.TileJSON.

Describe alternatives you've considered
MapTiler has some public endpoints but these require a key. Maybe we can still use.

Additional context
The unit tests were removed by removing these fixtures from tests/data/fixtures.json:

In fixtures.json


Resource
    "PDOK MAPBOX TILEJSON": {
      "owner": "admin",
      "resource_type": "Mapbox:TileJSON",
      "active": true,
      "title": "PDOK BRT+BGT Mapbox TileJSON",
      "url": "https://geodata.nationaalgeoregister.nl/beta/topotiles-viewer/styles/tilejson.json",
      "tags": [
        "pdok",
        "tiling"
      ]
    }
Probe vars
   "PDOK - MAPBOX TILEJSON": {
      "resource": "PDOK MAPBOX TILEJSON",
      "probe_class": "GeoHealthCheck.plugins.probe.mapbox.TileJSON",
      "parameters": {
        "lat_4326": "52",
        "lon_4326": "5"
      }
    }
Check vars

    "PDOK MAPBOX TILEJSON - HTTP - NoError": {
      "probe_vars": "PDOK - MAPBOX TILEJSON",
      "check_class": "GeoHealthCheck.plugins.check.checks.HttpStatusNoError",
      "parameters": {}
    },

Lingua principale
Python
Stelle
92
Fork
76
Merge medio
7h 21m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di geopython/GeoHealthCheck

Tutte le issue di geopython/GeoHealthCheck

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.