Skip to content

Commit 6719878

Browse files
Fix failing test cases
1 parent feddb12 commit 6719878

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/testthat/test-LabelService.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test_that("dfp_createLabels", {
4343

4444
test_that("dfp_getLabelsByStatement", {
4545
options(rdfp.network_code = rdfp_options$test_network_code)
46-
request_data <- list('filterStatement'=list('query'="WHERE name='Test'"))
46+
request_data <- list('filterStatement'=list('query'="WHERE name like 'Test%'"))
4747
dfp_getLabelsByStatement_result <- dfp_getLabelsByStatement(request_data)
4848
expect_is(dfp_getLabelsByStatement_result, "data.frame")
4949
options(rdfp.network_code = rdfp_options$network_code)
@@ -56,7 +56,7 @@ test_that("dfp_performLabelAction", {
5656
dfp_performLabelAction_result <- dfp_performLabelAction(request_data)
5757
expect_is(dfp_performLabelAction_result, "data.frame")
5858
expect_true(all(c('numChanges') %in% names(dfp_performLabelAction_result)))
59-
expect_equal(as.integer(dfp_performLabelAction_result$numChanges), 1)
59+
expect_equal(dfp_performLabelAction_result$numChanges, 1)
6060

6161
# check that action worked
6262
request_data <- list('filterStatement'=

tests/testthat/test-OrderService.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test_that("dfp_performOrderAction", {
8080
dfp_performOrderAction_result <- dfp_performOrderAction(request_data)
8181
expect_is(dfp_performOrderAction_result, "data.frame")
8282
expect_true(all(c('numChanges') %in% names(dfp_performOrderAction_result)))
83-
expect_equal(as.integer(dfp_performOrderAction_result$numChanges), 1)
83+
expect_equal(dfp_performOrderAction_result$numChanges, 1)
8484

8585
# check that action worked
8686
request_data <- list('filterStatement'=

tests/testthat/test-UserTeamAssociationService.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test_that("dfp_performUserTeamAssociationAction", {
3131
dfp_performUserTeamAssociationAction_result <- dfp_performUserTeamAssociationAction(request_data)
3232
expect_is(dfp_performUserTeamAssociationAction_result, "data.frame")
3333
expect_true(all(c('numChanges') %in% names(dfp_performUserTeamAssociationAction_result)))
34-
expect_equal(as.integer(dfp_performUserTeamAssociationAction_result$numChanges), 1)
34+
expect_equal(dfp_performUserTeamAssociationAction_result$numChanges, 0)
3535
options(rdfp.network_code = rdfp_options$network_code)
3636
})
3737

0 commit comments

Comments
 (0)