mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
More Py3 fixes
This commit is contained in:
parent
8c1e33de72
commit
3d5d70db41
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ class DbTemplatesTestCase(TestCase):
|
|||
temp_template_path = os.path.join(temp_template_dir, 'temp_test.html')
|
||||
temp_template = io.open(temp_template_path, 'w', encoding='utf-8')
|
||||
try:
|
||||
temp_template.write('temp test')
|
||||
temp_template.write(u'temp test')
|
||||
settings.TEMPLATES[0]['DIRS'] = (temp_template_dir,)
|
||||
# these works well if is not settings patched at runtime
|
||||
# for supporting django < 1.7 tests we must patch dirs in runtime
|
||||
|
|
@ -119,7 +119,7 @@ class DbTemplatesTestCase(TestCase):
|
|||
Template.objects.filter(name='temp_test.html').exists())
|
||||
|
||||
t = Template.objects.get(name='temp_test.html')
|
||||
t.content = 'temp test modified'
|
||||
t.content = u'temp test modified'
|
||||
t.save()
|
||||
call_command('sync_templates', force=True,
|
||||
verbosity=0, overwrite=DATABASE_TO_FILES)
|
||||
|
|
|
|||
Loading…
Reference in a new issue