mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
remove lambda@edge support; use python functools.lru_cache
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import unittest
|
||||
from lambda_function import parse_tile_uri, cloudfrontResponse, apiGatewayResponse
|
||||
from lambda_function import parse_tile_uri
|
||||
|
||||
|
||||
class TestLambda(unittest.TestCase):
|
||||
@@ -13,14 +13,6 @@ class TestLambda(unittest.TestCase):
|
||||
tileset, tile = parse_tile_uri("abcd")
|
||||
self.assertEqual(tile, None)
|
||||
|
||||
def test_cloudfront_response(self):
|
||||
resp = cloudfrontResponse(200, "ok", False, {"a": "b"})
|
||||
self.assertEqual(resp["headers"]["a"], [{"value": "b"}])
|
||||
|
||||
def test_api_gateway_response(self):
|
||||
resp = apiGatewayResponse(200, "ok", False, {"a": "b"})
|
||||
self.assertEqual(resp["headers"]["a"], "b")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user