OCHA-DAP / hdx-cli-toolkit

A commandline tool for interacting with HDX with a view to doing bulk updates
MIT License
1 stars 0 forks source link

GH18 Improve testing, error handling and coincidently introduce console colour #24

Closed IanHopkinson closed 5 months ago

IanHopkinson commented 5 months ago

Purpose

Version for this PR: 2024.4.2

The main aim of this PR was to improve test coverage but incidentally a universal error handler for the HDX authorization error was added and a demonstration of adding colour to terminal output included.

18 #14 #22

Major file changes

Major changes to the test files

Minor file changes

Minor documentation change from previous version. Decorator added to hdx_utilities.py file

Versioning

hdx-cli-toolkit uses the CalVer versioning scheme with format YYYY.MM.Micro i.e. 2022.12.1 which is updated manually in pyproject.toml. The "Micro" component is simply an integer increased by 1 at each version, starting from 0.