tests/testthat/_snaps/drive_update.md

drive_update() errors if local media does not exist

Code
  drive_update(dribble(), "nope123")
Condition
  Error in `drive_update()`:
  ! No file exists at the local `media` path:
  x 'nope123'

drive_update() informatively errors if the path does not exist

Code
  drive_update(nm_("does-not-exist"), system.file("DESCRIPTION"))
Condition
  Error in `confirm_single_file()`:
  ! `file` does not identify at least one Drive file.

drive_update() informatively errors if the path is not unique

Code
  drive_update(nm_("not-unique"), system.file("DESCRIPTION"))
Condition
  Error in `confirm_single_file()`:
  ! `file` identifies more than one Drive file.

no op if no media, no metadata

Code
  out <- drive_update(nm_("update-fodder"))
Message
  ! No updates specified.


tidyverse/googledrive documentation built on Jan. 14, 2024, 3:44 a.m.