-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Roll back to the previous version of test
- Loading branch information
Showing
2 changed files
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,7 @@ | |
|
||
from nose.tools import assert_equal, assert_in, assert_not_in | ||
|
||
import ckan.plugins.toolkit as tk | ||
import mock | ||
from ckan import plugins as p | ||
from ckan.tests import helpers | ||
from ckanext.subscribe.email_verification import ( | ||
get_verification_email_vars, | ||
) | ||
|
@@ -20,13 +17,9 @@ | |
|
||
|
||
class TestSubscriptionEmails(OgdchFunctionalTestBase): | ||
|
||
def test_get_email_vars_with_subscription(self): | ||
|
||
subscription = factories.Subscription( | ||
dataset_id=self.dataset['id'], | ||
email='[email protected]', | ||
return_object=True | ||
dataset_id=self.dataset['id'], return_object=True | ||
) | ||
|
||
subscribe = OgdchSubscribePlugin() | ||
|
@@ -53,7 +46,6 @@ def test_get_email_vars_with_subscription(self): | |
assert_equal(email_vars['unsubscribe_link'], | ||
'http://frontend-test.ckan.net/subscribe/unsubscribe?code=testcode&dataset={}' | ||
.format(self.dataset['id'])) | ||
assert_equal(subscription.g_recaptcha_response, 'valid-recaptcha-response') | ||
|
||
def test_get_email_vars_with_email(self): | ||
subscribe = OgdchSubscribePlugin() | ||
|