allow empty publication date, also make sure test database uses charset utf8 or else tests will fail

pull/1/head
Ed Summers 2011-11-21 14:13:29 -05:00
parent b9b99b4b34
commit 3b777f87aa
3 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ def add_by_googlebooks_id(googlebooks_id, work=None):
e.title = d.get('title')
e.description = d.get('description')
e.publisher = d.get('publisher')
e.publication_date = d.get('publishedDate')
e.publication_date = d.get('publishedDate', '')
e.language = d.get('language')
for i in d.get('industryIdentifiers', []):

View File

@ -17,6 +17,7 @@ DATABASES = {
'PASSWORD': '',
'HOST': '',
'PORT': '',
'TEST_CHARSET': 'utf8',
}
}
@ -99,4 +100,4 @@ FREEBASE_PASSWORD = ''
CELERYD_HIJACK_ROOT_LOGGER = False
# a debug_toolbar setting
INTERNAL_IPS = ('127.0.0.1',)
INTERNAL_IPS = ('127.0.0.1',)

View File

@ -17,6 +17,7 @@ DATABASES = {
'PASSWORD': 'jenkins',
'HOST': 'jenkins.cboagmr25pjs.us-east-1.rds.amazonaws.com',
'PORT': '',
'TEST_CHARSET': 'utf8',
}
}