This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for Content-subclass list view
- Loading branch information
Adam Wentz
committed
Nov 7, 2014
1 parent
8ec951f
commit bc26626
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
from bulbs.content.views import BaseContentDetailView | ||
from bulbs.content.views import BaseContentDetailView, ContentListView | ||
|
||
from .models import TestContentObjTwo | ||
|
||
|
||
class AllContentListView(ContentListView): | ||
template_name = "testapp/content_list.html" | ||
|
||
|
||
class ContentTwoListView(ContentListView): | ||
model = TestContentObjTwo | ||
template_name = "testapp/content_list.html" | ||
|
||
|
||
class TestContentDetailView(BaseContentDetailView): | ||
"""Test ContentDetailView that is based on the BaseContentDetailView as expected.""" | ||
template_name = "testapp/testcontentobj_detail.html" | ||
|
||
|
||
test_content_detail = TestContentDetailView.as_view() | ||
test_all_content_list = AllContentListView.as_view() | ||
test_content_two_list = ContentTwoListView.as_view() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters