transportenergy / database

Tools for accessing and maintaining the iTEM model & historical databases
https://transportenergy.rtfd.io
GNU General Public License v3.0
24 stars 8 forks source link

Adjust for new OECD data endpoint #88

Open khaeru opened 1 month ago

khaeru commented 1 month ago

The former OECD-JSON SDMX-REST web service endpoint has gone offline, causing CI failures such as here:

FAILED item/tests/test_historical.py::test_coverage[0-59] - requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://stats.oecd.org/SDMX-JSON/data/ITF_PASSENGER_TRANSPORT/.T-PASS-TOT-INLD+T-PASS-RL-TOT+T-PASS-RD-TOT+T-PASS-RD-CAR+T-PASS-RD-BUS
FAILED item/tests/test_historical.py::test_coverage[1-39] - requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://stats.oecd.org/SDMX-JSON/data/ITF_GOODS_TRANSPORT/.T-SEA-CAB
FAILED item/tests/test_historical.py::test_coverage[2-54] - requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://stats.oecd.org/SDMX-JSON/data/ITF_GOODS_TRANSPORT/.T-CONT-RL-TEU+T-CONT-RL-TON+T-CONT-SEA-TEU+T-CONT-SEA-TON
FAILED item/tests/test_historical.py::test_coverage[3-59] - requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://stats.oecd.org/SDMX-JSON/data/ITF_GOODS_TRANSPORT/.T-GOODS-TOT-INLD+T-GOODS-RL-TOT+T-GOODS-RD-TOT+T-GOODS-RD-REW+T-GOODS-RD-OWN+T-GOODS-IW-TOT+T-GOODS-PP-TOT

To fix: