Fixes in databases and i18n

This commit is contained in:
Antonio de la Rosa 2017-05-16 03:52:14 +02:00
parent a65f9b49eb
commit d6831da5b6
8 changed files with 137 additions and 101 deletions

View file

@ -7,7 +7,7 @@ import unittest
class TestFieldMethods(unittest.TestCase):
def test_i18nfield(self):
"""
field=I18nField('i18n')
value=field.check({})
@ -26,16 +26,18 @@ class TestFieldMethods(unittest.TestCase):
I18n.default_lang='en-US'
GetPostFiles.post={'i18n_es-ES': 'My Text'}
forms=GetPostFiles()
forms.post={'i18n_es-ES': 'My Text'}
value=field.check('')
self.assertTrue(field.error)
"""
#phrase=slugify.slugify('this!()is a crap phrase o}çÇf oh yeah¡\'')
#self.assertEqual(phrase, 'this---is-a-crap-phrase-o---f-oh-yeah--')
# Need fixes
pass
if __name__ == '__main__':
unittest.main()