-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add: ルート API にポータルページを追加 * fix: lint * fix: API タグを追加 * fix: エンジン名をマニフェストから自動で取得 * fix: ポータルからライセンス情報リンクを削除 * fix: スナップショット更新 * READMEと合わせる --------- Co-authored-by: Hiroshiba <[email protected]>
- Loading branch information
Showing
4 changed files
with
72 additions
and
0 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
22 changes: 22 additions & 0 deletions
22
test/e2e/__snapshots__/test_openapi/test_OpenAPIの形が変わっていないことを確認.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# serializer version: 1 | ||
# name: test_get_root_200 | ||
''' | ||
|
||
<html> | ||
<head> | ||
<title>DUMMY Engine</title> | ||
</head> | ||
<body> | ||
<h1>DUMMY Engine</h1> | ||
DUMMY Engine へようこそ! | ||
<ul> | ||
<li><a href='/setting'>設定</a></li> | ||
<li><a href='/docs'>API ドキュメント</a></li> | ||
</ul></body></html> | ||
|
||
''' | ||
# --- |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" | ||
/ API のテスト | ||
""" | ||
|
||
from fastapi.testclient import TestClient | ||
from syrupy.assertion import SnapshotAssertion | ||
|
||
|
||
def test_get_root_200(client: TestClient, snapshot: SnapshotAssertion) -> None: | ||
response = client.get("/") | ||
assert response.status_code == 200 | ||
assert snapshot == response.content.decode("utf-8") |