@@ -73,7 +73,7 @@ async def test_update_new_collection(app_client, load_test_data):
73
73
test_collection ["id" ] = "new-test-collection"
74
74
75
75
resp = await app_client .put (
76
- "/collections/{ctx.collection ['id']}" , json = test_collection
76
+ f "/collections/{ test_collection ['id' ]} " , json = test_collection
77
77
)
78
78
assert resp .status_code == 404
79
79
@@ -89,7 +89,7 @@ async def test_collection_not_found(app_client):
89
89
async def test_returns_valid_collection (ctx , app_client ):
90
90
"""Test validates fetched collection with jsonschema"""
91
91
resp = await app_client .put (
92
- "/collections/{ctx.collection['id']}" , json = ctx .collection
92
+ f "/collections/{ ctx .collection ['id' ]} " , json = ctx .collection
93
93
)
94
94
assert resp .status_code == 200
95
95
@@ -116,7 +116,7 @@ async def test_collection_extensions(ctx, app_client):
116
116
test_asset = {"title" : "test" , "description" : "test" , "type" : "test" }
117
117
ctx .collection ["item_assets" ] = {"test" : test_asset }
118
118
resp = await app_client .put (
119
- "/collections/{ctx.collection['id']}" , json = ctx .collection
119
+ f "/collections/{ ctx .collection ['id' ]} " , json = ctx .collection
120
120
)
121
121
122
122
assert resp .status_code == 200
0 commit comments