def test_get_items_not_found(self, init_db, client, headers, headers_without_content_type):
body = [{
'store_id': 1,
'name': 'Placement Test',
'variations': [{
'_operation': 'insert',
'name': 'Var 1',
'slots': [{'id': 2}]
}]
}]
client = await client
resp = await client.post('/placements/', headers=headers, data=ujson.dumps(body))
obj = (await resp.json())[0]
resp = await client.get('/placements/{}/items'.format(obj['small_hash']), headers=headers_without_content_type)
assert resp.status == 404
评论列表
文章目录