Issue #83 - Step 3 - Configure which fields should be reported to slack, per activity. #501
Annotations
5 errors and 1 warning
test_fitbit_oauth.test_refresh_token_ok:
tests/routes/test_fitbit_oauth.py#L128
AttributeError: 'NoneType' object has no attribute 'log_id'
|
test_fitbit_routes.test_duplicate_activity_notification:
tests/routes/test_fitbit_routes.py#L272
AttributeError: 'NoneType' object has no attribute 'log_id'
|
test_fitbit_poll.test_fitbit_poll_activity[New Spinning activity, partial zones]:
tests/tasks/test_fitbit_poll.py#L209
AssertionError: assert 1234 == 1235
+ where 1234 = ActivityData(log_id=1234, type_id=55001, total_minutes=30, calories=10, distance_km=621.556863286148, zone_minutes=[ActivityZoneMinutes(zone=<ActivityZone.PEAK: 'peak'>, minutes=2058), ActivityZoneMinutes(zone=<ActivityZone.CARDIO: 'cardio'>, minutes=13), ActivityZoneMinutes(zone=<ActivityZone.FAT_BURN: 'fat_burn'>, minutes=7), ActivityZoneMinutes(zone=<ActivityZone.OUT_OF_ZONE: 'out_of_zone'>, minutes=8637)]).log_id
+ and 1235 = FitbitActivityScenario(input_initial_activity_data={'log_id': 1234, 'total_minutes': 30, 'calories': 10, 'fat_burn_minutes': 7, 'cardio_minutes': 13, 'created_at': datetime.datetime(1999, 12, 31, 0, 0), 'updated_at': datetime.datetime(1999, 12, 31, 0, 0)}, input_mock_fitbit_response={'activities': [{'activeZoneMinutes': {'minutesInHeartRateZones': [{'minutes': 8, 'type': 'FAT_BURN'}, {'minutes': 9, 'type': 'CARDIO'}, {'minutes': 0, 'type': 'OUT_OF_ZONE'}, {'minutes': 0, 'type': 'PEAK'}]}, 'activityName': 'Spinning', 'activityTypeId': 55001, 'logId': 1235, 'calories': 76, 'duration': 665000}]}, expected_new_last_activity_log_id=1235, expected_message_pattern='New Spinning activity.*️ New record.*️ New all-time record.*Fat burn.*8.*.*New all-time record.*Cardio.*9.*↘️ New record', expected_new_activity_created=True, settings_override=None).expected_new_last_activity_log_id
|
test_fitbit_poll.test_fitbit_poll_activity[New Spinning activity, full zones]:
tests/tasks/test_fitbit_poll.py#L209
AssertionError: assert 1234 == 1235
+ where 1234 = ActivityData(log_id=1234, type_id=55001, total_minutes=8, calories=70, distance_km=4210.9892108501, zone_minutes=[ActivityZoneMinutes(zone=<ActivityZone.CARDIO: 'cardio'>, minutes=20), ActivityZoneMinutes(zone=<ActivityZone.FAT_BURN: 'fat_burn'>, minutes=1)]).log_id
+ and 1235 = FitbitActivityScenario(input_initial_activity_data={'log_id': 1234, 'total_minutes': 8, 'calories': 70, 'fat_burn_minutes': 1, 'cardio_minutes': 20, 'out_of_zone_minutes': None, 'peak_minutes': None, 'created_at': datetime.datetime(1999, 12, 31, 0, 0), 'updated_at': datetime.datetime(1999, 12, 31, 0, 0)}, input_mock_fitbit_response={'activities': [{'activeZoneMinutes': {'minutesInHeartRateZones': [{'minutes': 12, 'type': 'FAT_BURN'}, {'minutes': 9, 'type': 'CARDIO'}, {'minutes': 10, 'type': 'OUT_OF_ZONE'}, {'minutes': 11, 'type': 'PEAK'}]}, 'activityName': 'Spinning', 'activityTypeId': 55001, 'logId': 1235, 'calories': 76, 'duration': 665000}]}, expected_new_last_activity_log_id=1235, expected_message_pattern='New Spinning activity.*↗️ New all-time record.*️ New all-time record.*Fat burn.*12.*️ New all-time record.*Cardio.*9.*️ New record.*Out of zone.*10.*↗️.*Peak.*11.*️ New all-time record', expected_new_activity_created=True, settings_override=None).expected_new_last_activity_log_id
|
test_post_daily_activities:
tests/tasks/test_post_daily_activities.py#L145
AssertionError: assert 'New daily Tr...: 9.500 km ️' == 'New daily Tr...ime record! #x1F3C6'
New daily Treadmill activity from <@JDoe>:
- • Activity count: 1
- • Total duration: 116 minutes ↗️ New record (last 180 days)! #x1F3C6
- • Total calories: 805 ️
- • Distance: 9.500 km ️
? --
+ • Distance: 9.500 km ️
- • Total fat burn minutes: 41 ️
- • Total cardio minutes: 35 ↗️
- • Total peak minutes: 1 New all-time record! #x1F3C6
|
Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
reports
|
248 KB |
|