Skip to content

Commit

Permalink
[#3191] remove redundant setup, setup_class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Aug 12, 2016
1 parent 3650da8 commit a27711e
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions ckan/tests/controllers/test_package.py
Expand Up @@ -418,12 +418,6 @@ def test_unauthed_user_creating_dataset(self):


class TestPackageEdit(helpers.FunctionalTestBase):
@classmethod
def setup_class(cls):
super(cls, cls).setup_class()
helpers.reset_db()
search.clear_all()

def test_organization_admin_can_edit(self):
user = factories.User()
organization = factories.Organization(
Expand Down Expand Up @@ -563,14 +557,6 @@ def test_edit_a_dataset_that_does_not_exist_404s(self):


class TestPackageRead(helpers.FunctionalTestBase):
@classmethod
def setup_class(cls):
super(cls, cls).setup_class()
helpers.reset_db()

def setup(self):
model.repo.rebuild_db()

def test_read(self):
dataset = factories.Dataset()
app = helpers._get_test_app()
Expand Down Expand Up @@ -1018,9 +1004,6 @@ def setup_class(cls):

helpers.reset_db()

def setup(self):
model.repo.rebuild_db()

@classmethod
def teardown_class(cls):
p.unload('image_view')
Expand Down Expand Up @@ -1062,15 +1045,6 @@ def test_resource_view_description_is_rendered_as_markdown(self):


class TestResourceRead(helpers.FunctionalTestBase):
@classmethod
def setup_class(cls):
super(TestResourceRead, cls).setup_class()
helpers.reset_db()
search.clear_all()

def setup(self):
model.repo.rebuild_db()

def test_existing_resource_with_not_associated_dataset(self):

dataset = factories.Dataset()
Expand Down Expand Up @@ -1329,11 +1303,6 @@ def test_confirm_and_cancel_deleting_a_resource(self):


class TestSearch(helpers.FunctionalTestBase):
@classmethod
def setup_class(cls):
super(cls, cls).setup_class()
helpers.reset_db()

def test_search_basic(self):
dataset1 = factories.Dataset()

Expand Down

0 comments on commit a27711e

Please sign in to comment.