R Under development (unstable) (2024-09-21 r87186 ucrt) -- "Unsuffered Consequences" 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. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(Argentum) > > test_check("Argentum") Requesting capabilities from: http://example.com/wms?service=WMS&request=GetCapabilities Attempt 1 failed. Retrying... Attempt 2 failed. Retrying... [ FAIL 25 | WARN 0 | SKIP 0 | PASS 4 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_argentum_get_capabilities.R:32:3'): argentum_get_capabilities works correctly ── Error in `value[[3L]](cond)`: Failed to retrieve capabilities after 3 attempts: Internal Server Error (HTTP 500). Backtrace: ▆ 1. └─Argentum::argentum_get_capabilities(url) at test_argentum_get_capabilities.R:32:3 2. └─base::tryCatch(...) 3. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 4. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5. └─value[[3L]](cond) ── Error ('test_argentum_import_wfs_layer.R:4:3'): argentum_import_wfs_layer constructs correct URL ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_import_wfs_layer.R:4:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_import_wfs_layer.R:13:3'): argentum_import_wfs_layer handles URL with existing parameters ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_import_wfs_layer.R:13:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_import_wfs_layer.R:22:3'): argentum_import_wfs_layer handles errors ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_import_wfs_layer.R:22:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_interactive_import.R:8:3'): argentum_interactive_import handles successful import ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_interactive_import.R:8:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_interactive_import.R:20:3'): argentum_interactive_import handles invalid organization selection ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_interactive_import.R:20:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_interactive_import.R:30:3'): argentum_interactive_import handles no layers ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_interactive_import.R:30:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_interactive_import.R:41:3'): argentum_interactive_import handles invalid layer selection ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_interactive_import.R:41:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_layers.R:5:3'): argentum_list_layers handles valid input ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_layers.R:5:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_layers.R:18:3'): argentum_list_layers handles WMS URL ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_layers.R:18:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_layers.R:27:3'): argentum_list_layers handles invalid organization ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_layers.R:27:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_layers.R:33:3'): argentum_list_layers handles empty layer list ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_layers.R:33:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_organizations.R:5:3'): argentum_list_organizations returns correct structure ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_organizations.R:5:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_organizations.R:15:3'): argentum_list_organizations handles empty WFS_URL ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_organizations.R:15:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_organizations.R:23:3'): argentum_list_organizations cleans URLs ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_organizations.R:23:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_list_organizations.R:32:3'): argentum_list_organizations handles all sources failing ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_list_organizations.R:32:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_select_organization.R:11:3'): argentum_select_organization returns correct organization ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_select_organization.R:11:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_select_organization.R:26:3'): argentum_select_organization handles search ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_select_organization.R:26:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_select_organization.R:41:3'): argentum_select_organization handles no selection ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_select_organization.R:41:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test_argentum_select_organization.R:55:3'): argentum_select_organization handles no matching organizations ── Error in `loadNamespace(x)`: there is no package called 'mockery' Backtrace: ▆ 1. └─base::loadNamespace(x) at test_argentum_select_organization.R:55:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Failure ('test_clean_url.R:10:3'): clean_url works correctly ──────────────── clean_url("https://example.com [WMS]") (`actual`) not equal to "https://example.com" (`expected`). `actual`: "https://example.com [WMS]" `expected`: "https://example.com" ── Failure ('test_clean_url.R:12:3'): clean_url works correctly ──────────────── clean_url("example.com") (`actual`) not equal to "http://example.com" (`expected`). `actual`: "example.com" `expected`: "http://example.com" ── Failure ('test_clean_url.R:13:3'): clean_url works correctly ──────────────── clean_url("example.com [WFS]") (`actual`) not equal to "http://example.com" (`expected`). `actual`: "example.com [WFS]" `expected`: "http://example.com" ── Failure ('test_clean_url.R:17:3'): clean_url works correctly ──────────────── clean_url("[WMS]example.com") (`actual`) not equal to "http://example.com" (`expected`). `actual`: "[WMS]example.com" `expected`: "http://example.com" ── Failure ('test_clean_url.R:18:3'): clean_url works correctly ──────────────── clean_url("[WFS] http://example.com") (`actual`) not equal to "http://example.com" (`expected`). `actual`: "[WFS] http://example.com" `expected`: "http://example.com" [ FAIL 25 | WARN 0 | SKIP 0 | PASS 4 ] Error: Test failures Execution halted