Skip to content

Commit

Permalink
Test case branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pcicman committed Nov 5, 2009
1 parent 4898046 commit 44db719
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .settings/org.eclipse.core.resources.prefs
@@ -1,4 +1,4 @@
#Tue Sep 15 11:43:51 CEST 2009
#Thu Nov 05 11:08:34 CET 2009
eclipse.preferences.version=1
encoding//cms/docs/conf.py=utf-8
encoding//cms/tests/page.py=UTF-8
encoding//cms/tests/page.py=utf-8
2 changes: 1 addition & 1 deletion cms/templatetags/cms_admin.py
Expand Up @@ -105,7 +105,7 @@ def page_submit_row(context):
'is_popup': is_popup,
'show_save': True,
'language': language,
'language_name': [name for langcode, name in cms_settings.CMS_LANGUAGES if langcode == language][0],
'language_name': [name for langcode, name in settings.CMS_LANGUAGES if langcode == language][0],
'show_delete_translation': show_delete_translation
}
page_submit_row = register.inclusion_tag('admin/page_submit_line.html', takes_context=True)(page_submit_row)
4 changes: 2 additions & 2 deletions cms/tests/base.py
Expand Up @@ -37,8 +37,8 @@ def get_new_page_data(self, parent_id=''):
'site':1, 'template':'index.html', 'parent': parent_id}

# required only if user haves can_change_permission
#page_data['pagepermission_set-TOTAL_FORMS'] = 0
#page_data['pagepermission_set-INITIAL_FORMS'] = 0
page_data['pagepermission_set-TOTAL_FORMS'] = 0
page_data['pagepermission_set-INITIAL_FORMS'] = 0

self.counter = self.counter + 1
return page_data
Expand Down
12 changes: 0 additions & 12 deletions cms/tests/page.py
Expand Up @@ -16,18 +16,6 @@ def setUp(self):

self.login_user(u)

def get_new_page_data(self):
page_data = {'title':'test page %d' % self.counter,
'slug':'test-page-%d' % self.counter, 'language':'en',
'site':1, 'published':True, 'template':'index.html'}

# required only if user haves can_change_permission
page_data['pagepermission_set-TOTAL_FORMS'] = 0
page_data['pagepermission_set-INITIAL_FORMS'] = 0

self.counter = self.counter + 1
return page_data

def test_01_add_page(self):
"""
Test that the add admin page could be displayed via the admin
Expand Down

0 comments on commit 44db719

Please sign in to comment.