Skip to content

Commit

Permalink
[#1251] Adds test making sure we remove recline_preview after CKAN 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed May 7, 2014
1 parent b7bf87a commit a2ace82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ckanext/reclinepreview/tests/test_view.py
Expand Up @@ -2,6 +2,7 @@
import paste.fixture
import pylons.config as config

import ckan
import ckan.model as model
import ckan.tests as tests
import ckan.plugins as p
Expand Down Expand Up @@ -53,6 +54,15 @@ def test_loading_this_plugin_gives_a_warning(self, getLogger):

log.warn.assert_called_once()

def test_this_plugin_only_exists_on_ckan_2_3(self):
version = ckan.__version__

error_msg = ("Plugin 'resource_preview' plugin was created just to "
"ease the transition between 2.2 and 2.3. It should be "
"removed in later versions.")

assert version.startswith('2.3'), error_msg


class BaseTestReclineView(tests.WsgiAppCase):
@classmethod
Expand Down

0 comments on commit a2ace82

Please sign in to comment.