R version 4.4.0 alpha (2024-04-05 r86346 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(pyMTurkR) > > test_that("All tests", { + skip_if_not( + is.null(tryCatch({reticulate:::ensure_python_initialized()}, error=function(e) T)), + "Skipping tests as we cannot get reticulate to recognize our python setup" + ) + test_dir("testthat") + }) ✔ | F W S OK | Context ⠏ | 0 | AccountBalance ✔ | 1 0 | AccountBalance ⠏ | 0 | AssignQualification ✔ | 4 0 | AssignQualification ⠏ | 0 | BlockWorker ✔ | 1 0 | BlockWorker ⠏ | 0 | ChangeHITType ✔ | 2 0 | ChangeHITType ⠏ | 0 | ContactWorker ✔ | 6 0 | ContactWorker ⠏ | 0 | CreateHIT ✔ | 2 0 | CreateHIT ⠏ | 0 | CreateQualificationType ✔ | 3 0 | CreateQualificationType ⠏ | 0 | DisableHIT ✔ | 2 0 | DisableHIT ⠏ | 0 | DisposeQualificationType ⠏ | 0 | ExtendHIT ✔ | 2 0 | ExtendHIT ⠏ | 0 | GenerateHITsFromTemplate ✔ | 2 1 | GenerateHITsFromTemplate ⠏ | 0 | GenerateHTMLQuestion ⠋ | 1 | GenerateHTMLQuestion ✔ | 2 | GenerateHTMLQuestion ⠏ | 0 | GenerateNotification ✔ | 3 | GenerateNotification ⠏ | 0 | GenerateQualificationRequirement ✔ | 5 16 | GenerateQualificationRequirement ──────────────────────────────────────────────────────────────────────────────── Warning ('test-GenerateQualificationRequirement.R:21:3'): GenerateQualificationRequirement Categorization/Moderation Masters Qualifications have been removed. Using generic Masters Qualification instead. Backtrace: ▆ 1. └─pyMTurkR::GenerateQualificationRequirement(quals.list) at test-GenerateQualificationRequirement.R:21:3 Warning ('test-GenerateQualificationRequirement.R:21:3'): GenerateQualificationRequirement IntegerValues not used if Qualification is Exists/DoesNotExist Backtrace: ▆ 1. └─pyMTurkR::GenerateQualificationRequirement(quals.list) at test-GenerateQualificationRequirement.R:21:3 Warning ('test-GenerateQualificationRequirement.R:21:3'): GenerateQualificationRequirement IntegerValues not used if Qualification is Exists/DoesNotExist Backtrace: ▆ 1. └─pyMTurkR::GenerateQualificationRequirement(quals.list) at test-GenerateQualificationRequirement.R:21:3 Warning ('test-GenerateQualificationRequirement.R:112:3'): GenerateQualificationRequirement errors LocaleValues not used if Qualification is Exists/DoesNotExist Backtrace: ▆ 1. └─pyMTurkR::GenerateQualificationRequirement(quals.list) at test-GenerateQualificationRequirement.R:112:3 Warning ('test-GenerateQualificationRequirement.R:124:3'): GenerateQualificationRequirement errors IntegerValues not used if Qualification is Exists/DoesNotExist Backtrace: ▆ 1. └─pyMTurkR::GenerateQualificationRequirement(quals.list) at test-GenerateQualificationRequirement.R:124:3 ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | GenerateReviewPolicy ✔ | 14 | GenerateReviewPolicy ⠏ | 0 | GetAssignment ✔ | 1 0 | GetAssignment ⠏ | 0 | GetBlockedWorkers ✔ | 1 0 | GetBlockedWorkers ⠏ | 0 | GetBonuses ✔ | 1 0 | GetBonuses ⠏ | 0 | GetClient ⠏ | 0 | GetHIT ⠏ | 0 | GetHITsForQualificationType ✔ | 1 0 | GetHITsForQualificationType ⠏ | 0 | GetQualificationRequests ✔ | 2 0 | GetQualificationRequests ⠏ | 0 | GetQualificationScore ✔ | 1 0 | GetQualificationScore ⠏ | 0 | GetQualificationType ✔ | 1 0 | GetQualificationType ⠏ | 0 | GetQualifications ✔ | 1 0 | GetQualifications ⠏ | 0 | GetReviewResultsForHIT ✔ | 1 0 | GetReviewResultsForHIT ⠏ | 0 | GetReviewableHITs ✔ | 1 0 | GetReviewableHITs ⠏ | 0 | GrantBonus ✔ | 3 0 | GrantBonus ⠏ | 0 | GrantQualification ✔ | 1 0 | GrantQualification ⠏ | 0 | HITStatus ✔ | 1 0 | HITStatus ⠏ | 0 | RegisterHITType ⠏ | 0 | RejectAssignment ✔ | 1 0 | RejectAssignment ⠏ | 0 | RejectQualification ✔ | 1 0 | RejectQualification ⠏ | 0 | SearchQualificationTypes ✔ | 3 0 | SearchQualificationTypes ⠏ | 0 | SendTestEventNotification ✔ | 1 0 | SendTestEventNotification ⠏ | 0 | SetHITAsReviewing ✔ | 1 0 | SetHITAsReviewing ⠏ | 0 | SetHITTypeNotification ✔ | 1 0 | SetHITTypeNotification ⠏ | 0 | UnblockWorker ✔ | 1 0 | UnblockWorker ⠏ | 0 | UpdateQualificationScore ✔ | 1 0 | UpdateQualificationScore ⠏ | 0 | UpdateQualificationType ✔ | 2 0 | UpdateQualificationType ⠏ | 0 | testxlast1-ApproveAssignment ✔ | 1 0 | testxlast1-ApproveAssignment ⠏ | 0 | testxlast2-ApproveAllAssignments ✔ | 7 0 | testxlast2-ApproveAllAssignments ══ Results ═════════════════════════════════════════════════════════════════════ ── Skipped tests (61) ────────────────────────────────────────────────────────── • CheckAWSKeys() is not TRUE (61): 'test-AccountBalance.R:3:3', 'test-AssignQualification.R:3:3', 'test-AssignQualification.R:15:3', 'test-AssignQualification.R:30:3', 'test-AssignQualification.R:43:3', 'test-BlockWorker.R:2:3', 'test-ChangeHITType.R:3:3', 'test-ChangeHITType.R:94:3', 'test-ContactWorker.R:3:3', 'test-ContactWorker.R:13:3', 'test-ContactWorker.R:23:3', 'test-ContactWorker.R:42:3', 'test-ContactWorker.R:65:3', 'test-ContactWorker.R:83:3', 'test-CreateHIT.R:3:3', 'test-CreateHIT.R:99:3', 'test-CreateQualificationType.R:3:3', 'test-CreateQualificationType.R:20:3', 'test-CreateQualificationType.R:42:3', 'test-DisableHIT.R:3:3', 'test-DisableHIT.R:102:3', 'test-ExtendHIT.R:3:3', 'test-ExtendHIT.R:61:3', 'test-GenerateHITsFromTemplate.R:4:3', 'test-GenerateHITsFromTemplate.R:23:3', 'test-GetAssignment.R:3:3', 'test-GetBlockedWorkers.R:3:3', 'test-GetBonuses.R:3:3', 'test-GetHITsForQualificationType.R:2:3', 'test-GetQualificationRequests.R:2:3', 'test-GetQualificationRequests.R:17:3', 'test-GetQualificationScore.R:2:3', 'test-GetQualificationType.R:2:3', 'test-GetQualifications.R:2:3', 'test-GetReviewResultsForHIT.R:3:3', 'test-GetReviewableHITs.R:3:3', 'test-GrantBonus.R:3:3', 'test-GrantBonus.R:25:3', 'test-GrantBonus.R:47:3', 'test-GrantQualification.R:2:3', 'test-HITStatus.R:3:3', 'test-RejectAssignment.R:3:3', 'test-RejectQualification.R:2:3', 'test-SearchQualificationTypes.R:3:3', 'test-SearchQualificationTypes.R:9:3', 'test-SearchQualificationTypes.R:16:3', 'test-SendTestEventNotification.R:2:3', 'test-SetHITAsReviewing.R:2:3', 'test-SetHITTypeNotification.R:2:3', 'test-UnblockWorker.R:2:3', 'test-UpdateQualificationScore.R:2:3', 'test-UpdateQualificationType.R:2:3', 'test-UpdateQualificationType.R:24:3', 'testxlast1-ApproveAssignment.R:3:3', 'testxlast2-ApproveAllAssignments.R:3:3', 'testxlast2-ApproveAllAssignments.R:10:3', 'testxlast2-ApproveAllAssignments.R:16:3', 'testxlast2-ApproveAllAssignments.R:32:3', 'testxlast2-ApproveAllAssignments.R:46:3', 'testxlast2-ApproveAllAssignments.R:62:3', 'testxlast2-ApproveAllAssignments.R:81:3' [ FAIL 0 | WARN 5 | SKIP 61 | PASS 36 ] Your tests are gnarly! ── Skip: All tests ───────────────────────────────────────────────────────────── Reason: empty test > > proc.time() user system elapsed 3.28 0.25 9.86