Beispiel #1
0
def prepopulate_db():
    " Prepopulates db with sample data "
    logger = get_stderr_logger()
    for _ in xrange(0, 50):
        p = dummy_post()
        generate_post(p, logger, force=True)
        publish_post(p, logger, force=True)
Beispiel #2
0
    def test_workflow(self):
        " Tests post generation, publishing, and deletion "
        p = dummy_post("nezaj", "Moop")
        logger = get_stderr_logger()

        generate_post(p, logger, force=True)
        publish_post(p, logger, force=True)
        delete_post(p, logger)