Added CLI command to create blogs.

This commit is contained in:
2016-10-26 10:52:37 +02:00
parent 62ac12deff
commit a38e053c1a
4 changed files with 87 additions and 3 deletions

View File

@@ -329,6 +329,11 @@ class AbstractPillarTest(TestMinimal):
return group_ids
def fetch_project_from_db(self, project_id=ctd.EXAMPLE_PROJECT_ID):
with self.app.app_context():
proj_coll = self.app.db()['projects']
return proj_coll.find_one(project_id)
@staticmethod
def join_url_params(params):
"""Constructs a query string from a dictionary and appends it to a url.