Esempio n. 1
0
def post_test():
    tags = [tag_pastor(), tag_computer()]
    post = Post(title='My Test Post',
                description='My Test Description',
                content='My test content',
                post_type='post',
                post_status='published',
                author=test_user(),
                category=category_sermon(),
                tags=tags)
    post.url = post.slugify(post.title)
    post.put()
    return post
Esempio n. 2
0
def page_test():
    tags = [tag_event]
    page = Post(title='My Test Page',
                description='My Test Page Description',
                content='My test page content',
                post_type='page',
                post_status='publisehd',
                author=test_user,
                category=category_worship,
                tags=tags)
    page.url = page.slugify(page.title)
    page.put()
    return page
Esempio n. 3
0
def post_test():
    tags = [tag_pastor(), tag_computer()]
    post = Post(
        title="My Test Post",
        description="My Test Description",
        content="My test content",
        post_type="post",
        post_status="published",
        author=test_user(),
        category=category_sermon(),
        tags=tags,
    )
    post.url = post.slugify(post.title)
    post.put()
    return post
Esempio n. 4
0
def page_test():
    tags = [tag_event]
    page = Post(
        title="My Test Page",
        description="My Test Page Description",
        content="My test page content",
        post_type="page",
        post_status="publisehd",
        author=test_user,
        category=category_worship,
        tags=tags,
    )
    page.url = page.slugify(page.title)
    page.put()
    return page