tests for elements, variometers, and observatories
These are very straightforward tests around checking the response formats for /elements/, /variometers/, and /observatories/ because these are all pretty static and don't change much.
I'm curious about some behavior I'm seeing and I'd love further insight if possible.
- Why is "geometry" always set to None on elements? elements.py
- Why do all of these resources get returned as an object with fields
typeandfeaturesinstead of just as a list of resources? elements, observatories, variometers - Why the choice to transform the static data instead of returning the static data as it's stored in the files? Similarly, why nest most of the info under "metadata"?
- Why aren't there separate classes for Observatories and Variometers?
- Why are the
/variometers/endpoints methods calledget_observatoriesorget_observatories_by_id?
Edited by Hobbs, Alexandra (Contractor)