Skip to content

Commit

Permalink
整理: e2e /engine_manifest テストの追加 (#1058)
Browse files Browse the repository at this point in the history
* add: e2e `/engine_manifest` テスト

* fix: lint

* use hash_long_string

---------

Co-authored-by: Hiroshiba Kazuyuki <[email protected]>
  • Loading branch information
tarepan and Hiroshiba authored Feb 21, 2024
1 parent 7707d39 commit 1c60a67
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions test/e2e/test_engine_manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
/engine_manifest APIのテスト
"""

from test.utility import hash_long_string

from fastapi.testclient import TestClient
from syrupy.assertion import SnapshotAssertion


def test_エンジンマニフェストを取得できる(client: TestClient, snapshot_json: SnapshotAssertion) -> None:
response = client.get("/engine_manifest")
assert response.status_code == 200
assert snapshot_json == hash_long_string(response.json())

0 comments on commit 1c60a67

Please sign in to comment.