Example #1
0
    def setUp(self):
        host = os.environ.get('GEOREST_PG_STORAGE_HOST')
        port = os.environ.get('GEOREST_PG_STORAGE_PORT', 5432)
        username = os.environ.get('GEOREST_PG_STORAGE_USERNAME', 'username')
        password = os.environ.get('GEOREST_PG_STORAGE_PASSWORD', 'password')
        database = os.environ.get('GEOREST_PG_STORAGE_DATABASE', 'database')

        self.storage = build_feature_storage(
            'postgis',
            host=host,
            port=port,
            username=username,
            password=password,
            database=database
        )
Example #2
0
 def setUp(self):
     self.storage = build_feature_storage(prototype='dummy')