Changeset d7a9df5 in OpenWorkouts-current for ow/tests/models/test_workout.py
- Timestamp:
- Feb 10, 2019, 8:28:44 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- e547af5
- Parents:
- 6662a84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/tests/models/test_workout.py
r6662a84 rd7a9df5 143 143 workout.distance = 44.44444444 144 144 assert workout.rounded_distance == 44.44 145 146 def test_trimmed_notes(self): 147 workout = Workout() 148 assert workout.notes == '' 149 assert workout.trimmed_notes == '' 150 workout.notes = 'very short notes' 151 assert workout.notes == 'very short notes' 152 assert workout.trimmed_notes == 'very short notes' 153 workout.notes = 'long notes now, repeated' * 1000 154 assert len(workout.notes) == 24000 155 assert len(workout.trimmed_notes) == 224 156 assert workout.trimmed_notes.endswith(' ...') 145 157 146 158 def test_has_hr(self):
Note: See TracChangeset
for help on using the changeset viewer.