Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
test(test): status -> status_code
Browse files Browse the repository at this point in the history
  • Loading branch information
SaidBySolo committed Mar 8, 2021
1 parent c794b0e commit 0f3e91d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions test/test_response.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
async def test_info_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/info/1496588")
assert response.status == 200
assert response.status_code == 200


async def test_galleryindo_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/galleryinfo/1496588")
assert response.status == 200
assert response.status_code == 200


async def test_integrated_info_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/integrated/1496588")
assert response.status == 200
assert response.status_code == 200


async def test_list_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/list/1")
assert response.status == 200
assert response.status_code == 200


async def test_index_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/index")
assert response.status == 200
assert response.status_code == 200


async def test_images_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/images/1496588")
assert response.status == 200
assert response.status_code == 200


async def test_proxy_response(test_cli):
response = await test_cli.get(
"/v3/api/proxy/bb_images_hitomi_la_3_b2_7c731d3025aecf74205b1b188c36d65c124ca5bc0a2e81edcf28125aa9df5b23.png"
)
assert response.status == 200
assert response.status_code == 200
10 changes: 5 additions & 5 deletions test/test_unexpected_response.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
async def test_info_unexpected_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/info/1111111111111111")
assert response.status != 200
assert response.status_code != 200


async def test_galleryindo_unexpected_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/galleryinfo/1111111111111111")
assert response.status != 200
assert response.status_code != 200


async def test_list_unexpected_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/list/1111111111111111")
assert response.status != 200
assert response.status_code != 200


async def test_images_unexpected_response(test_cli):
response = await test_cli.get("/v3/api/hitomi/images/1111111111111111")
assert response.status != 200
assert response.status_code != 200


async def test_proxy_unexpected_response(test_cli):
response = await test_cli.get("/v3/api/proxy/this_is_test")
assert response.status != 200
assert response.status_code != 200

0 comments on commit 0f3e91d

Please sign in to comment.