19 lines
503 B
Python
19 lines
503 B
Python
import pytest
|
|
import requests
|
|
|
|
BASEURL = "http://localhost:8080/"
|
|
|
|
|
|
class TestIntegrationRequest:
|
|
"""統合テスト: 実際のCloud Functionエンドポイントにリクエストを送信"""
|
|
|
|
def test_get_request_default(self):
|
|
"""GETリクエスト: デフォルトパラメータ"""
|
|
response = requests.get(BASEURL)
|
|
|
|
assert response.status_code == 200
|
|
data = response.json()
|
|
assert "message" in data
|
|
assert data["message"] == "Hello, World!"
|
|
|