Project

General

Profile

« Previous | Next » 

Revision 09054632

Added by Serghei Mihai over 9 years ago

prefix unsubscription link with url read from settings (#12543)

View differences:

tests/test_emailing.py
import urlparse
import pytest
import json
from uuid import uuid4
......
from django.utils import timezone
from django.core.files.storage import DefaultStorage
from django.core.urlresolvers import reverse
from django.conf import settings
from corbo.models import Category, Announce, Subscription, Broadcast
from corbo.models import channel_choices
......
assert unsubscription_link in mail.outbox[0].text
mail.outbox = []
# make sure the uri schema is not in the page
resp = app.get(unsubscription_link)
resp = app.get(unsubscription_path)
assert scheme not in resp.content

Also available in: Unified diff