test_placements_integration.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:myreco 作者: dutradda 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号