- Timestamp:
- Oct 13, 2019, 4:45:30 PM (5 years ago)
- Branches:
- current
- Children:
- 8340661
- Parents:
- 93b23a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/tests/models/test_workout.py
r93b23a6 r6211162 155 155 # now a workout that is not (no owner info) 156 156 workout = Workout( 157 sport='running', 157 158 start_time=datetime.now(timezone.utc), 158 159 duration=timedelta(seconds=3600), … … 166 167 # now an empty workout... 167 168 workout = Workout() 168 with pytest.raises(AttributeError): 169 assert workout.hashed == ( 170 workout.start.strftime('%Y%m%d%H%M%S') + 171 str(workout.duration.seconds) + 172 str(workout.distance) 173 ) 169 assert workout.hashed == ( 170 workout.start.strftime('%Y%m%d%H%M%S') 171 ) 174 172 175 173 def test_trimmed_notes(self):
Note: See TracChangeset
for help on using the changeset viewer.