Skip to content

Commit

Permalink
test(reporter): update unit tests for fixed DPYD values
Browse files Browse the repository at this point in the history
  • Loading branch information
whaleyr committed Aug 20, 2024
1 parent 2c0a994 commit 43fb9ba
Show file tree
Hide file tree
Showing 2 changed files with 12,787 additions and 9,530 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ void multipleActivityScores(TestInfo testInfo) throws Exception {
phenotype = document.select(".dpwg-guideline-warfarin .rx-phenotype");
assertEquals(2, phenotype.size());

// CPIC guidance lookup for warfarin does not use phenotypes so no activity score will be there
Elements activityScore = document.select(".cpic-guideline-warfarin .rx-activity");
assertEquals(0, activityScore.size());
// none of the DPWG genes for warfarin use activity score
activityScore = document.select(".dpwg-guideline-warfarin .rx-activity");
assertEquals(1, activityScore.size());
assertEquals(0, activityScore.size());
}

@Test
Expand Down Expand Up @@ -179,7 +181,7 @@ void multiplePhenotypes(TestInfo testInfo) throws Exception {
Elements activityScore = document.select(".cpic-guideline-warfarin .rx-activity");
assertEquals(0, activityScore.size());
activityScore = document.select(".dpwg-guideline-warfarin .rx-activity");
assertEquals(1, activityScore.size());
assertEquals(0, activityScore.size());
}

private Path printReport(TestInfo testInfo, ReportContext reportContext) throws Exception {
Expand Down
Loading

0 comments on commit 43fb9ba

Please sign in to comment.