Skip to content

Commit

Permalink
Fix a crash in mock_publisher_auth
Browse files Browse the repository at this point in the history
mock_publisher_auth uses `log` but doesn't initialise it. Import logging
and initialise log.
  • Loading branch information
Sean Hammond committed Nov 28, 2012
1 parent 81a471c commit e4f3838
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/tests/mock_publisher_auth.py
@@ -1,5 +1,8 @@
from ckan.new_authz import is_authorized
from ckan.logic import NotAuthorized
import logging

log = logging.getLogger("mock_publisher_auth")

class MockPublisherAuth(object):
"""
Expand Down

0 comments on commit e4f3838

Please sign in to comment.