Skip to content

Commit 10080d9

Browse files
author
chadcarlson
committed
update routes() definitions and tests
1 parent 577da6a commit 10080d9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

platformshconfig/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def get_route(self, route_id):
285285
286286
"""
287287

288-
for (url, route) in self.routes.items():
288+
for (url, route) in self.routes().items():
289289
if route['id'] == route_id:
290290
route['url'] = url
291291
return route

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_inruntime_inbuild_phase_is_false(self):
9292
def test_load_routes_in_runtime_works(self):
9393

9494
config = Config(self.mockEnvironmentDeploy)
95-
routes = config.routes
95+
routes = config.routes()
9696

9797
self.assertTrue(isinstance(routes, dict))
9898

0 commit comments

Comments
 (0)