Skip to content

Conversation

@IsaacMilarky
Copy link
Contributor

@IsaacMilarky IsaacMilarky commented Oct 29, 2025

Add Missing Test for PractitionerRoleViewSetTestCase

Jira Ticket #NDH-250

Problem

We are missing a test that tests the sorting of the list of Practioners by their corresponding locations

Solution

Create a test by checking the ids returned by the endpoint and verifying that they are in the order of their location names.

Test Plan

Run make test

Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Co-authored-by: Adam Bachman <adam.bachman@cms.hhs.gov>
@abachman-dsac abachman-dsac self-requested a review November 3, 2025 16:37
Copy link
Member

@abachman-dsac abachman-dsac left a comment

Choose a reason for hiding this comment

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

I am comfortable approving this test, but I would prefer that future work begin introducing per-test-case data loading.

Test expectations which are only true when a dataset contained in a different sub-project has been loaded are more brittle than we should accept, long-term.

@abachman-dsac abachman-dsac merged commit 5c1f895 into main Nov 3, 2025
9 checks passed
@IsaacMilarky IsaacMilarky deleted the straggler-api-sort-tests branch November 3, 2025 18:06
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.

3 participants