Skip to content

Commit

Permalink
Add another switch for Django 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Nov 24, 2016
1 parent 5f6de04 commit eeb9c94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/pytests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def test_form_output_empty17(self):
'nk" type="hidden" /><strong id="name_id_link"></strong>&nbsp;<a hr'
'ef="/admin/anylink/anylink/?_to_field=id" class="anylink-button sh'
'ow-popup" id="lookup_id_link" onclick="return window.AnyLinkAddOrC'
'hangeWidget.show(this, true);" data-add="Add link" data-change="Ch'
'hangeWidget.show(this, {1});" data-add="Add link" data-change="Ch'
'ange link">Add link</a>&nbsp;<img src="/static/admin/img/{0}" id="'
'delete_id_link" onclick="return window.AnyLinkAddOrChangeWidget.de'
'lete(this);" style="cursor:pointer;display:none" /></p>'
).format(ICON_FILENAME)
).format(ICON_FILENAME, ('true' if django.VERSION[:2] >= (1, 9) else 'false'))

@skip_django17
def test_form_output_empty(self):
Expand Down Expand Up @@ -64,11 +64,11 @@ def test_form_output_with_instance17(self):
'nk" type="hidden" value="1" /><strong id="name_id_link">/fake/</st'
'rong>&nbsp;<a href="/admin/anylink/anylink/?_to_field=id" class="a'
'nylink-button show-popup" id="lookup_id_link" onclick="return wind'
'ow.AnyLinkAddOrChangeWidget.show(this, true);" data-add="Add link"'
'ow.AnyLinkAddOrChangeWidget.show(this, {1});" data-add="Add link"'
' data-change="Change link">Change link</a>&nbsp;<img src="/static/'
'admin/img/{0}" id="delete_id_link" onclick="return window.AnyLinkA'
'ddOrChangeWidget.delete(this);" style="cursor:pointer" /></p>'
).format(ICON_FILENAME)
).format(ICON_FILENAME, ('true' if django.VERSION[:2] >= (1, 9) else 'false'))

@skip_django17
def test_form_output_with_instance(self):
Expand Down

0 comments on commit eeb9c94

Please sign in to comment.