Skip to content

t.info: Add tests#7682

Open
petrasovaa wants to merge 1 commit into
OSGeo:mainfrom
petrasovaa:t.info-tests
Open

t.info: Add tests#7682
petrasovaa wants to merge 1 commit into
OSGeo:mainfrom
petrasovaa:t.info-tests

Conversation

@petrasovaa

Copy link
Copy Markdown
Contributor

Adds pytest tests for t.info and removes the old shell script test.

The tests pin the current output of t.info so that changes to its interface in #7043, can be checked against the
established behavior.

temporal/t.info/testsuite/test.t.info.sh is removed. Everything it exercised has an equivalent here, with the difference that the new tests assert values instead of only printing them.

Depends on #7681: The expected number of rows and columns is the one corrected in #7681. Until that is merged and this branch is rebased, the rows and cols assertions fail.

The tests were written with the help of Claude Code.

Add pytest tests covering the plain, shell (-g), history (-h) and
temporal database backend (-d) output of t.info for space time datasets
and maps of all types. Include a dataset without registered maps, a
relative time dataset, a map registered in two datasets and non-ASCII
title and description.

Remove the shell script test, which the new tests replace.

The tests were written with the help of Claude Code.
@petrasovaa petrasovaa requested a review from ninsbl July 13, 2026 13:09

@ninsbl ninsbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Assuming tests pass with #7681 merged.

@github-actions github-actions Bot added temporal Related to temporal data processing Python Related code is in Python module tests Related to Test Suite labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Python Related code is in Python temporal Related to temporal data processing tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants