Running ‘testthat.R’ [5s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(polished)
  > library(httr)
  > 
  > test_check("polished")
  Polished API request failed
  Status Code: 400 
  Polished API request failed
  Status Code: 400 
  Polished API request failed
  Status Code: 500 
  Polished API request failed
  Status Code: 400 
  Polished API request failed
  Status Code: 400 
  Polished API request failed
  Status Code: 400 
  Polished API request failed
  Status Code: 405 
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-api-03-app-users.R:27'): a user can be added/invited to an app - by email ──
  Error: argument "app_uid" is missing, with no default
  Backtrace:
      ▆
   1. └─polished::add_app_user(app_uid = test_app$uid, email = test_user$email) at test-api-03-app-users.R:27:2
   2.   └─polished::polished_api_res(resp)
  ── Failure ('test-api-03-app-users.R:70'): can get an app user - by email ──────
  nrow(api_res$content) (`actual`) not equal to 1L (`expected`).
  
    `actual`: 0
  `expected`: 1
  ── Failure ('test-api-03-app-users.R:80'): can get an app user - by user_uid ───
  nrow(api_res$content) (`actual`) not equal to 1L (`expected`).
  
    `actual`: 0
  `expected`: 1
  ── Error ('test-api-03-app-users.R:105'): can update a user ────────────────────
  Error: `user_uid`, `app_uid`, and `is_admin` all cannot be `NULL`
  Backtrace:
      ▆
   1. └─polished::update_app_user(...) at test-api-03-app-users.R:105:2
   2.   └─polished::polished_api_res(resp)
  ── Error ('test-api-03-app-users.R:115'): can delete a user ────────────────────
  Error: both `user_uid` and `app_uid` cannot be `NULL`
  Backtrace:
      ▆
   1. └─polished::delete_app_user(user_uid = test_user$uid, app_uid = test_app$uid) at test-api-03-app-users.R:115:2
   2.   └─polished::polished_api_res(resp)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
  Error: Test failures
  Execution halted