def METHOD_NAME(
    self,
    app: Flask,
    user_1: User,
    sport_1_cycling: Sport,
    workout_cycling_user_1: Workout,
) -> None:
    duration = timedelta(seconds=3600, microseconds=100)
    segment = create_segment(
        workout_id=workout_cycling_user_1.id,
        workout_uuid=workout_cycling_user_1.uuid,
        segment_data={
            'idx': 0,
            'duration': duration,
            'distance': 10,
            'stop_time': timedelta(seconds=0),
            'moving_time': duration,
            'elevation_min': None,
            'elevation_max': None,
            'downhill': None,
            'uphill': None,
            'max_speed': 10,
            'average_speed': 10,
        },
    )
    assert segment.duration.microseconds == 0