bcgov / bcdata

An R package for searching & retrieving data from the B.C. Data Catalogue
https://bcgov.github.io/bcdata
Apache License 2.0
81 stars 12 forks source link

Fail informatively when resource doesn't exist #290

Closed ateucher closed 2 years ago

ateucher commented 2 years ago

Tests are currently failing because one of our test records changed the resource id. This illustrated that we don't actually have a check to ensure a requested resource exists in a record. This fixes that (along with a new test), and fixes the failing test by using the new resource ID.