fireblog.tests package¶
Subpackages¶
Submodules¶
fireblog.tests.comments_test module¶
fireblog.tests.conftest module¶
fireblog.tests.functional_tests module¶
-
class
fireblog.tests.functional_tests.Test_functional_tests[source]¶ Bases:
object-
logged_in(testapp, persona_test_admin_login)[source]¶ This is a context manager that provides a logged in session as admin. Use as follows:
- with logged_in(testapp):
- # Do stuff whilst logged in. pass
-
test_crud(theme, testapp, persona_test_admin_login)[source]¶ Testing all CRUD operations in one big test.
-
test_logout_changes_page_back_to_page_before_logging_in(testapp, persona_test_admin_login)[source]¶ This test covers a bug I introduced at one point when the view_post page was fully cached, after template rendering. This meant that the page would always be retrieved from cache, not taking into account things like logging in which means that person needs to see a different page.
-
fireblog.tests.login_test module¶
fireblog.tests.models_test module¶
fireblog.tests.renderer_globals_test module¶
fireblog.tests.tags_test module¶
Bases:
objectTest deleting tag1 and renaming tag2 and not changing tag3.
Bases:
objectTest that the right posts are displayed and that they are in the right order by default (newest first).
Test that posts can be sorted oldest first
fireblog.tests.tasks_test module¶
fireblog.tests.views_test module¶
-
class
fireblog.tests.views_test.Test_rss[source]¶ Bases:
object-
pytestmark= [<MarkDecorator 'usefixtures' {'args': ('test_with_one_theme',), 'kwargs': {}}>]¶
-
rss_success_text_1= ''¶ <?xml version=”1.0” encoding=”iso-8859-1”?> <rss version=”2.0”><channel>
-
rss_success_text_2= ''¶ </lastBuildDate><generator>PyRSS2Gen-1.1.0</generator><docs>
-
-
class
fireblog.tests.views_test.Test_uuid[source]¶ Bases:
object-
pytestmark= [<MarkDecorator 'usefixtures' {'args': ('test_with_one_theme',), 'kwargs': {}}>]¶
-
-
class
fireblog.tests.views_test.Test_view_all_posts[source]¶ Bases:
object-
pytestmark= [<MarkDecorator 'usefixtures' {'args': ('test_with_one_theme',), 'kwargs': {}}>]¶
-
-
class
fireblog.tests.views_test.Test_view_multiple_posts_pager[source]¶ Bases:
objectTest the pager functionality on both view_all_posts and tag_view views
-
classmethod
check_posts_list_is_correct(posts, page_num, sort_ascending=False, tag_view=False)[source]¶
-
extra_posts_created= 101¶
-
max_pagination_page= 6¶
-
max_tag_view_pagination_page= 6¶
-
pytestmark= [<MarkDecorator 'usefixtures' {'args': ('test_with_one_theme',), 'kwargs': {}}>]¶
-
total_posts= 103¶
-
classmethod