From 1d22c21defb25a4324b091164dc434799fb9f071 Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Thu, 31 Oct 2024 11:51:51 -0400 Subject: [PATCH] fixed unit tests, adjusted codium secret --- .github/workflows/codium-pr-agent.yml | 2 +- tests/testthat/test-getSubnetworkFromIndra.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codium-pr-agent.yml b/.github/workflows/codium-pr-agent.yml index 3ea24eb..100c3f0 100644 --- a/.github/workflows/codium-pr-agent.yml +++ b/.github/workflows/codium-pr-agent.yml @@ -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 }} \ No newline at end of file diff --git a/tests/testthat/test-getSubnetworkFromIndra.R b/tests/testthat/test-getSubnetworkFromIndra.R index d6c52de..b41f297 100644 --- a/tests/testthat/test-getSubnetworkFromIndra.R +++ b/tests/testthat/test-getSubnetworkFromIndra.R @@ -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", { @@ -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) })