Skip to content

Commit

Permalink
fixed unit tests, adjusted codium secret
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu1999 committed Oct 31, 2024
1 parent 2ad3653 commit 1d22c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codium-pr-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
OPENAI_KEY: ${{ secrets.MSSTATS_OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions tests/testthat/test-getSubnetworkFromIndra.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test_that("getSubnetworkFromIndra works correctly", {
})
suppressWarnings(subnetwork <- getSubnetworkFromIndra(input))
expect_equal(nrow(subnetwork$nodes), 7)
expect_equal(nrow(subnetwork$edges), 2)
expect_equal(nrow(subnetwork$edges), 1)
})

test_that("getSubnetworkFromIndra with pvalue filter works correctly", {
Expand All @@ -21,5 +21,5 @@ test_that("getSubnetworkFromIndra with pvalue filter works correctly", {
subnetwork <- getSubnetworkFromIndra(input, pvalueCutoff = 0.45)
)
expect_equal(nrow(subnetwork$nodes), 6)
expect_equal(nrow(subnetwork$edges), 2)
expect_equal(nrow(subnetwork$edges), 1)
})

0 comments on commit 1d22c21

Please sign in to comment.