Skip to content

Commit

Permalink
[#1725] Make sure plugins are unloaded after running test_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Jun 11, 2014
1 parent 3c38dce commit 89bd566
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ckanext/datastore/tests/test_plugin.py
Expand Up @@ -9,7 +9,14 @@

class TestPlugin(object):
@classmethod
def setup(cls):
def setup_class(cls):
if p.plugin_loaded('datastore'):
p.unload('datastore')
if p.plugin_loaded('sample_datastore_plugin'):
p.unload('sample_datastore_plugin')

@classmethod
def teardown_class(cls):
if p.plugin_loaded('datastore'):
p.unload('datastore')
if p.plugin_loaded('sample_datastore_plugin'):
Expand Down

0 comments on commit 89bd566

Please sign in to comment.