Skip to content

Humanise test names for pytest report#148

Merged
carlosmartinez merged 2 commits into
mainfrom
chore/humanise-test-report-names
Jun 23, 2026
Merged

Humanise test names for pytest report#148
carlosmartinez merged 2 commits into
mainfrom
chore/humanise-test-report-names

Conversation

@carlosmartinez

Copy link
Copy Markdown
Contributor

Where we don't have docstrings for tests, create a human-readable description based on the test/class name.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-13193

Where we don't have docstrings for tests, create a human-readable
description based on the test/class name.
@carlosmartinez carlosmartinez requested a review from steventux June 22, 2026 13:55
Comment thread tests/conftest.py Outdated
# being naively title-cased from the test function name.
_ACRONYMS = {
"cfind": "C-FIND",
"cstore": "C-STORE",

@steventux steventux Jun 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure this is working as I understand it

Image

The C-STORE tests don't all appear to be consistently prefixed for example. Looks like the N-SET and others have similar issues.

My gut says we could just add consistent docstrings in all our tests and save on test suite complexity if we can't get consistent output from this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes fair enough. maybe i can use this script to generate some docstrings lol

Roll back the script for auto-generating test descriptions in the
report.

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📖

@carlosmartinez carlosmartinez merged commit db37862 into main Jun 23, 2026
9 checks passed
@carlosmartinez carlosmartinez deleted the chore/humanise-test-report-names branch June 23, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants