Changeset 9cc65af in OpenWorkouts-current
- Timestamp:
- Oct 13, 2019, 8:13:04 PM (5 years ago)
- Branches:
- current
- Children:
- b9a2c00
- Parents:
- 8340661
- Location:
- ow
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/root.py
r8340661 r9cc65af 121 121 def emails(self): 122 122 """ 123 Return all emails currently in use by users 123 Return all emails currently in use by users, sorted alphabetically 124 124 """ 125 return [user.email for user in self.users]125 return sorted([user.email for user in self.users]) 126 126 127 127 @property -
ow/tests/models/test_root.py
r8340661 r9cc65af 156 156 email='Jack.Dumb@example.net') 157 157 root.add_user(user) 158 assert root.lowercase_emails == ['j ohn.doe@example.net',159 'j ack.dumb@example.net']158 assert root.lowercase_emails == ['jack.dumb@example.net', 159 'john.doe@example.net'] 160 160 161 161 def test_sports(self, root, john):
Note: See TracChangeset
for help on using the changeset viewer.