コード例 #1
0
    def setUp(self):
        # We need to set the application context
        self.app_context = flask_app.app_context()
        self.app_context.push()
        # The test user
        self.user_id = "soeren"

        global global_config
        global_config.NUMBER_OF_WORKERS = 1

        self.rdc = ResourceDataContainer(grass_data_base="grass_data_base",
                                         grass_user_data_base="grass_user_data_base",
                                         grass_base_dir="grass_base_dir",
                                         request_data={"request_data":None},
                                         user_id="user_id",
                                         user_group="user_group",
                                         user_credentials={"user_credentials":None},
                                         resource_id="resource_id",
                                         status_url="status_url",
                                         api_info="api_info",
                                         resource_url_base="resource_url_base",
                                         orig_time=time.time(),
                                         orig_datetime=datetime.datetime.now(),
                                         config=global_config,
                                         location_name="location_name",
                                         mapset_name="mapset_name",
                                         map_name="map_name")
コード例 #2
0
 def setUp(self):
     # We need to set the application context
     self.app_context = flask_app.app_context()
     self.app_context.push()
     # The test user
     self.user_id = "soeren"
     self.log = ApiLogger()
     self.request_object = DummyHTTPRequest()
コード例 #3
0
    def setUp(self):
        # We need to set the application context
        self.app_context = flask_app.app_context()
        self.app_context.push()

        # Create a test user
        self.user_id = "soeren"
        self.password = "******"
        self.user_group = "test"
コード例 #4
0
 def setUp(self):
     # We need to set the application context
     self.app_context = flask_app.app_context()
     self.app_context.push()
     # The test user
     self.user_id = "soeren"
     self.resource_id = uuid.uuid1()
     self.document = pickle.dumps({"Status": "running", "URL": "/bla/bla"})
     self.log = ResourceLogger(global_config.REDIS_SERVER_URL,
                               global_config.REDIS_SERVER_PORT)
コード例 #5
0
 def setUp(self):
     # We need to set the application context
     self.app_context = flask_app.app_context()
     self.app_context.push()