Add test_update_sensor_name_and_type_updates_panel_title_and_query, which updates a sensor's name and type at the same time, and confirms that both were updated.
Add tests of Grafana.get_dashboard_url_by_name helper method for both a successful query and an unsuccessful query.
Add tests for Grafana.update_dashboard_title helper method, testing possible outcomes:
dashboard title is updated successfully
dashboard update fails because the new name matches the existing name
dashboard update fails because dashboard doesn't exist.
Add sensor_data_exists view tests
sensor_data_exists returns {"success": True} when measurements exist for the target sensor
sensor_data_exists returns {"success": False"} when no measurements exist for the sensor.
sensor_data_exists returns {"success": False"} when the target sensor id doesn't match an existing sensor
Add Grafana tests
test_update_sensor_name_and_type_updates_panel_title_and_query
, which updates a sensor's name and type at the same time, and confirms that both were updated.Grafana.get_dashboard_url_by_name
helper method for both a successful query and an unsuccessful query.Grafana.update_dashboard_title
helper method, testing possible outcomes:Add sensor_data_exists view tests
sensor_data_exists
returns{"success": True}
when measurements exist for the target sensorsensor_data_exists
returns{"success": False"}
when no measurements exist for the sensor.sensor_data_exists
returns{"success": False"}
when the target sensor id doesn't match an existing sensor