Repository navigation
t.rast3d.list: Add pytest files - #7498
Conversation
I didn't check, but that sounds like a bug. Could you investigate and create an issue for that if needed (and ideally fix:)) |
|
Nice to see more pytest coverage for the temporal tools. One small thing: with Minor: in the fixture, since Looks good overall. |
It's redundant only if the tests for grass tools api have a test checking this situation to make sure this assumption is still valid in the future, and that there isn't weird workarounds specific to the temporal part used (that would skip the place where there is this assumption)
Agree, and our minimum supported python version is 3.10 (see the pyproject.toml for example), that argument is available. There is a rule that can be used in ruff for that, B905 https://docs.astral.sh/ruff/rules/zip-without-explicit-strict/, and it shouldn't be inactive, @Valyrian-Code That kind of small suggestion is easier to apply when adding a review comment with a specific suggestion. Even if a comment or requested changes from collaborators outside the repository aren't considered by GitHub when evaluating if the configured rulesets allow a PR to be merged, they still appear as a grey-version of the same icon, and can be useful for the member that got the review.
|
|
Thanks @echoix, good points. On the returncode assert: fair, that is more defensive than I implied. It is only safe to drop if On B905: I think it passed because the rule only requires And thanks for the tip on adding a review comment with a specific suggestion. That makes sense, I will use that for small changes going forward. |
Why not try it here now? You already gave the context in the long pr conversation, so just the suggestion is appropriate |
|
@petrasovaa @echoix If this looks good, I was thinking we can merge this so that I can create the format option PR. I will create a separate, dedicated PR for that method fix as well. |
|
I had to update the branch because the windows build would have failed, and it was recently fixed on main. |
Can this PR be merged, is this solved (or does it impact these tests)? Cc @petrasovaa |
echoix
left a comment
There was a problem hiding this comment.
I don't have anything else to say
This PR is a part of #7484
Also, a quick question: Why is the output when using methods like
method=deltais same as the default one, while it is different in t.rast.list? Is this intentional?