-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grass.temporal.datetime_math: Return a TypedDict from compute_datetim…
…e_delta (#4700) * grass.temporal.datetime_math: Return a TypedDict from compute_datetime_delta * Use ternary operator `_day = 0 if start.day == 1 and end.day == 1 else day_diff` instead of `if`-`else`-block * Update date in file header * grass.temporal.datetime_math: Create pytest tests for compute_datetime_delta and datetime_delta dict Removed corresponding tests from the deprecated python/grass/temporal/unit_tests.py file which isn't run * Revert unintended changes in datetime_math * DEBUG: Highlight test errors when month is wrongly initialized * Rename test file to be catched by current pytest config * temporal: Assign the TypedDict with default values and keep the original look of the variabled * Update datetime_math.py * Remove duplicated, but wrong, doc example * tests: Update doctest with current dict order
- Loading branch information
Showing
3 changed files
with
344 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.