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


Ignore:
Timestamp:
Apr 22, 2019, 6:14:53 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
0dedfbe
Parents:
e52a502
Message:

(#39) Do not allow duplicated workouts by default when uploading track files.
We still allow users to add duplicates if they want, by checking a checkbox
we show in the upload workout form when we find a possible duplicate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/tests/test_catalog.py

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