Skip to content

Commit

Permalink
Get rid of some unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Jan 2, 2012
1 parent 0bcc61d commit 830d453
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/tests/models/test_activity.py
Expand Up @@ -266,7 +266,7 @@ def _update_package(self, package, user):
'user':self.normal_user.name,
'allow_partial_update':True}
package_dict = {'id':package.id, 'title':'edited'}
result = package_update(context, package_dict)
package_update(context, package_dict)

# Record some details after updating the package.
after = datetime.datetime.now()
Expand Down Expand Up @@ -348,7 +348,7 @@ def _update_resource(self, package, resource, user):
context = {'model': model, 'session': model.Session,
'user':user.name, 'allow_partial_update':True}
resource_dict = {'id':resource.id, 'name':'edited'}
result = resource_update(context, resource_dict)
resource_update(context, resource_dict)

# Record some details after updating the resource.
after = datetime.datetime.now()
Expand Down Expand Up @@ -430,7 +430,7 @@ def _delete_package(self, package):
context = {'model': model, 'session': model.Session,
'user':self.normal_user.name}
package_dict = {'id':package.id}
result = package_delete(context, package_dict)
package_delete(context, package_dict)

# Record some details after deleting the package.
after = datetime.datetime.now()
Expand Down Expand Up @@ -501,7 +501,7 @@ def _delete_resources(self, package):
context = {'model': model, 'session': model.Session,
'user':self.normal_user.name}
data_dict = { 'id':package.id, 'resources':[] }
result = package_update(context, data_dict)
package_update(context, data_dict)

# Record some details after deleting the resources.
after = datetime.datetime.now()
Expand Down

0 comments on commit 830d453

Please sign in to comment.