This repository has been archived by the owner on Mar 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c794b0e
commit 0f3e91d
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |