Skip to content

Commit

Permalink
Merge pull request #2 from DahyeonWoo/feature-hi
Browse files Browse the repository at this point in the history
Feat: change hello to hi
  • Loading branch information
DahyeonWoo authored Nov 6, 2023
2 parents 306f823 + 7065f36 commit e5ca416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from fastapi import FastAPI

app = FastAPI(
title="FastAPI - Hello World code",
description="This is the Hello World of FastAPI.",
title="FastAPI - Hi World code",
description="This is the Hi World of FastAPI.",
version="1.0.0",
)


@app.get("/")
def hello_world():
return {"Hello": "World"}
def hi_world():
return {"Hi": "World"}
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
def client():
return TestClient(app)

def test_hello_world(client):
def test_hi_world(client):
response = client.get("/")
assert response.status_code == 200
assert response.status_code != 500
assert response.json() == {"Hello": "World"}
assert response.json() == {"Hi": "World"}

0 comments on commit e5ca416

Please sign in to comment.