Open dado93 opened 2 months ago
We need to update and fix all the tests related to the sleep module:
test_compute_sleep_score
test_compute_time_in_bed
test_compute_total_sleep_time
test_compute_sleep_efficiency
test_compute_sleep_maintenance_efficiency
test_compute_sleep_stage_percentage
test_compute_light_percentage
test_compute_deep_percentage
test_compute_rem_percentage
test_compute_nrem_percentage
test_compute_sleep_stage_duration
test_compute_light_duration
test_compute_deep_duration
test_compute_rem_duration
test_compute_nrem_duration
test_compute_awake_duration
test_compute_unmeasurable_duration
test_compute_sleep_period_time
test_compute_sleep_onset_latency
test_compute_wake_after_sleep_onset
test_compute_light_latency
test_compute_deep_latency
test_compute_rem_latency
test_compute_latencies
test_compute_awake_count
test_compute_light_count
test_compute_deep_count
test_compute_rem_count
test_compute_stage_count
test_compute_bedtime
test_compute_wakeup_time
test_compute_sleep_midpoint
test_compute_cpd_midpoint
test_compute_cpd_duration
test_get_sleep_statistics
We can then check every single sleep statistic, without checking the actual computation as this is checked with the unit tests above:
test_get_sleep_score
test_get_time_in_bed
test_get_total_sleep_time
test_get_sleep_efficiency
test_get_sleep_maintenance_efficiency
test_get_sleep_stage_percentage
test_get_light_percentage
test_get_deep_percentage
test_get_rem_percentage
test_get_nrem_percentage
test_get_sleep_stage_duration
test_get_light_duration
test_get_deep_duration
test_get_rem_duration
test_get_nrem_duration
test_get_awake_duration
test_get_unmeasurable_duration
test_get_sleep_period_time
test_get_sleep_onset_latency
test_get_wake_after_sleep_onset
test_get_light_latency
test_get_deep_latency
test_get_rem_latency
test_get_latencies
test_get_awake_count
test_get_light_count
test_get_deep_count
test_get_rem_count
test_get_stage_count
test_get_bedtime
test_get_wakeup_time
test_get_sleep_midpoint
test_get_cpd_midpoint
test_get_cpd_duration
We need to update and fix all the tests related to the sleep module:
Unit tests
test_compute_sleep_score
test_compute_time_in_bed
test_compute_total_sleep_time
test_compute_sleep_efficiency
test_compute_sleep_maintenance_efficiency
test_compute_sleep_stage_percentage
test_compute_light_percentage
test_compute_deep_percentage
test_compute_rem_percentage
test_compute_nrem_percentage
test_compute_sleep_stage_duration
test_compute_light_duration
test_compute_deep_duration
test_compute_rem_duration
test_compute_nrem_duration
test_compute_awake_duration
test_compute_unmeasurable_duration
test_compute_sleep_period_time
test_compute_sleep_onset_latency
test_compute_wake_after_sleep_onset
test_compute_light_latency
test_compute_deep_latency
test_compute_rem_latency
test_compute_latencies
test_compute_awake_count
test_compute_light_count
test_compute_deep_count
test_compute_rem_count
test_compute_stage_count
test_compute_bedtime
test_compute_wakeup_time
test_compute_sleep_midpoint
test_compute_cpd_midpoint
test_compute_cpd_duration
Integration tests
test_get_sleep_statistics
We can then check every single sleep statistic, without checking the actual computation as this is checked with the unit tests above:
test_get_sleep_score
test_get_time_in_bed
test_get_total_sleep_time
test_get_sleep_efficiency
test_get_sleep_maintenance_efficiency
test_get_sleep_stage_percentage
test_get_light_percentage
test_get_deep_percentage
test_get_rem_percentage
test_get_nrem_percentage
test_get_sleep_stage_duration
test_get_light_duration
test_get_deep_duration
test_get_rem_duration
test_get_nrem_duration
test_get_awake_duration
test_get_unmeasurable_duration
test_get_sleep_period_time
test_get_sleep_onset_latency
test_get_wake_after_sleep_onset
test_get_light_latency
test_get_deep_latency
test_get_rem_latency
test_get_latencies
test_get_awake_count
test_get_light_count
test_get_deep_count
test_get_rem_count
test_get_stage_count
test_get_bedtime
test_get_wakeup_time
test_get_sleep_midpoint
test_get_cpd_midpoint
test_get_cpd_duration