Skip to content

Commit

Permalink
[#560] Skip datastore sql tests in legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Mar 6, 2013
1 parent c19b6ae commit d8f9db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/datastore/tests/test_search.py
Expand Up @@ -406,7 +406,9 @@ class TestDatastoreSQL(tests.WsgiAppCase):
def setup_class(cls):
if not tests.is_datastore_supported():
raise nose.SkipTest("Datastore not supported")
p.load('datastore')
plugin = p.load('datastore')
if plugin.legacy_mode:
raise nose.SkipTest("SQL tests are not supported in legacy mode")
ctd.CreateTestData.create()
cls.sysadmin_user = model.User.get('testsysadmin')
cls.normal_user = model.User.get('annafan')
Expand Down

0 comments on commit d8f9db9

Please sign in to comment.