-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
* refactor: e2e single API スナップショットテストを追加 * fix: コメントフォーマット統一 * fix: format
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# serializer version: 1 | ||
# name: test_setting画面が取得できる | ||
# name: test_get_setting_200 | ||
''' | ||
<!DOCTYPE html> | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
""" | ||
setting APIのテスト | ||
/setting API のテスト | ||
""" | ||
|
||
from fastapi.testclient import TestClient | ||
from syrupy.assertion import SnapshotAssertion | ||
|
||
|
||
def test_setting画面が取得できる( | ||
client: TestClient, snapshot: SnapshotAssertion | ||
) -> None: | ||
def test_get_setting_200(client: TestClient, snapshot: SnapshotAssertion) -> None: | ||
response = client.get("/setting") | ||
assert response.status_code == 200 | ||
# HTML string をテスト | ||
assert snapshot == response.content.decode("utf-8") |