def setUp(self): createSchema() executeRaw( "INSERT INTO pages (content, created_at, published_at, slug, title) VALUES ('test', '2012-09-10 19:20:01.413000','2012-09-10 19:20:01.410000','slug', 'Page Title')" ) self.service = page_service
def setUp(self): createSchema() executeRaw("INSERT INTO posts (content, created_at, excerpt, published_at, slug, title) VALUES ('test', '2012-09-10 19:20:01.413000', 'test excerpt', '2012-09-10 19:20:01.410000', 'slug', 'Post Title')") executeRaw("INSERT INTO tags (slug, title,posts_count) VALUES ('tag-slug', 'Tag Title',1)") executeRaw("INSERT INTO taggings (post_id, tag_id) VALUES (1,1)") self.service = tag_service
def setUp(self): createSchema() executeRaw("INSERT INTO archives (year,month,posts_count) VALUES (2012,9,1)") executeRaw("""INSERT INTO posts (content, created_at, excerpt, published_at, slug, title) VALUES ('test', '2012-09-10 19:20:01.413000', 'test excerpt', '2012-09-10 19:20:01.410000', 'post-slug', 'Post Title')""") executeRaw("INSERT INTO tags (slug, title,posts_count) VALUES ('tag', 'tag',1)") executeRaw("INSERT INTO taggings (post_id, tag_id) VALUES (1,1)") executeRaw(""" INSERT INTO pages ( content,created_at,published_at,slug,title) VALUES ('test','2012-09-10 19:20:01.413000','2012-09-10 19:20:01.410000','page-slug','Page Title') """) executeRaw("INSERT INTO pages (content, created_at, published_at, slug, title) VALUES ('test page', '2012-09-10 19:20:01.413000','2012-09-10 19:20:01.410000','slug', 'Page Title')") executeRaw("""INSERT INTO "settings"(blog_title , tag_line, meta_keywords, meta_description , items_per_page, posts_in_home, cache_duration_in_seconds , login, password, user_full_name, user_email, user_bio, user_short_name , root, google_analytics_code, feed_burner_url, bing_app_id, disqus_short_name, disqus_url) VALUES( 'Bhaguli Blog',' Blog Engine',' python',' Blog Engine written in Python' ,10, 5, 10, 'admin', 'admin', 'Bhaguli', '*****@*****.**', 'author bio', 'author short', 'http://localhost:3333', '', '/', '', '', '' ) """) from services import metaweblog_service self.service = metaweblog_service
def setUp(self): createSchema() self.service = page_service
def setUp(self): createSchema() self.service = blogImportExport_service
def setUp(self): createSchema() executeRaw("""INSERT INTO "settings"(blog_title , tag_line, meta_keywords, meta_description , items_per_page, posts_in_home, cache_duration_in_seconds , login, password, user_full_name, user_email, user_bio, user_short_name , root, google_analytics_code, feed_burner_url, bing_app_id, disqus_short_name, disqus_url) VALUES( 'Bhaguli Blog', 'Blog Engine', 'python', 'Blog Engine written in Python' ,10, 5, 10, 'admin', 'admin', 'Bhaguli', '*****@*****.**', 'author bio', 'author short', 'http://*****:*****@a.com', 'user_bio':'author bio', 'user_short_name':'author short' , 'root':'http://localhost:3333', 'google_analytics_code':'', 'feed_burner_url':'/', 'bing_app_id':'', 'disqus_short_name':'', 'disqus_url':''}