Changeset bddf042 in OpenWorkouts-current for ow/tests/test_catalog.py


Ignore:
Timestamp:
Feb 10, 2019, 7:56:34 AM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
f29d4b4
Parents:
4226ce0
Message:

(#7) Allow users profiles to be accessed using a more friendly url:

https://openworkouts.org/profile/NICKNAME

IMPORTANT: This change adds a new index to the catalog, so ensure you
update any existing databases after pulling.

Enter pshell and run this code:

root._update_indexes()
for user in root.users:

root.reindex(user)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/tests/test_catalog.py

    r4226ce0 rbddf042  
    5656        changes = update_indexes(catalog, indexes)
    5757        assert changes['added'] == ['newindex']
    58         assert changes['removed'] == ['email', 'sport']
     58        assert changes['removed'] == ['email', 'nickname', 'sport']
    5959
    6060    def test_update_indexes_empty(self, root):
     
    6363        changes = update_indexes(catalog, indexes)
    6464        assert changes['added'] == []
    65         assert changes['removed'] == ['email', 'sport']
     65        assert changes['removed'] == ['email', 'nickname', 'sport']
    6666
    6767    def test_install_catalog(self):
Note: See TracChangeset for help on using the changeset viewer.