pytest tests.model.test_json_handler
- tests.model.test_json_handler.json_test(data: Union[BloodGlucose, BloodPressure, Pulse, BodyTemperature, BodyWeight], dp_type: DataPointType) None
Tests the biometrics.model.json.BiometricsJSONEncoder class and biometrics_object_hook function by serializing and deserializing metric objects (e.g. BloodPressure, BloodGlucose, etc.)
- Parameters
data (biometrics_tracker.model.datapoints.metric_union) – a metric object
dp_type (biometrics_tracker.model.datapoints.DataPointType) – the DataPointType that corresponds to the data object
- Returns
None