Projet

Général

Profil

« Précédent | Suivant » 

Révision e147eff6

Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 7 ans

remove "homepage" transport (#13212)

Voir les différences:

tests/test_api.py
29 29
        a = Announce.objects.create(category=category, title='By email')
30 30
        Broadcast.objects.create(announce=a)
31 31
        announces.append(a)
32
        a = Announce.objects.create(category=category, title='On homepage')
32
        a = Announce.objects.create(category=category, title='Another one')
33 33
        Broadcast.objects.create(announce=a)
34 34
        announces.append(a)
35 35
    return announces
......
44 44
        assert 'text' in category
45 45
        assert category['text'] in CATEGORIES
46 46
        assert 'transports' in category
47
        assert category['transports'] == [{'id': 'mailto', 'text': 'Email'},
48
                                          {'id': 'homepage', 'text': 'Homepage'}
49
                                          ]
47
        assert category['transports'] == [{'id': 'mailto', 'text': 'Email'}]
50 48

  
51 49

  
52 50
def test_get_subscriptions_by_email(app, categories, announces):

Formats disponibles : Unified diff