forked from sr2/cloud-api
feat: caor docs and response model
This commit is contained in:
parent
0b521414b3
commit
ec41d1ed05
4 changed files with 45 additions and 9 deletions
|
|
@ -36,7 +36,7 @@ async def test_post_act_on_resource_endpoint_success(default_client: AsyncClient
|
|||
data = resp.json()
|
||||
|
||||
assert resp.status_code == 200
|
||||
assert data is True
|
||||
assert data["allowed"] is True
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
@ -148,7 +148,7 @@ async def test_act_on_resource_logic(
|
|||
data = resp.json()
|
||||
|
||||
assert resp.status_code == 200
|
||||
assert data == expected_response
|
||||
assert data["allowed"] == expected_response
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue