Skip to content

Commit

Permalink
fix: Roll back to the previous version of test
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Jul 5, 2024
1 parent 96f616b commit 2eaea08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ckanext/switzerland/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def setup(self):
'modified': '09.09.2015',
'url': 'http://some_url',
'owner_org': 'test-org',
'identifier': 'test@test-org',
'identifier': 'test@test-org'
}
self.dataset = tk.get_action('package_create')(context, self.dataset_dict)
10 changes: 1 addition & 9 deletions ckanext/switzerland/tests/test_subscription_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 2eaea08

Please sign in to comment.