Exemple #1
0
 def init_structure(self):
     """
     Validate and initialize structure
     """
     config = self.config
     projects = config.get("projects")
     if not projects:
         raise Exception("projects required")
     validate_and_prepare_project_structure(projects)
     self.structure = projects
     self.structure_dict = structure_to_dict(projects)
Exemple #2
0
 def init_structure(self):
     """
     Validate and initialize structure
     """
     config = self.config
     projects = config.get("projects")
     if not projects:
         raise Exception("projects required")
     validate_and_prepare_project_structure(projects)
     self.structure = projects
     self.structure_dict = structure_to_dict(projects)
Exemple #3
0
 def test_dict_options(self):
     config = {
       "password": "******",
       "cookie_secret": "cookie_secret",
       "structure": [
         {
           "name": "development",
           "secret": "secret",
           "namespaces": [
             {
               "name": "public",
               "publish": True,
               "watch": True,
               "presence": True,
               "join_leave": True,
               "history_size": 10,
               "history_lifetime": 30
             }
           ]
         }
       ]
     }
     validate_and_prepare_project_structure(config["structure"])