Skip to content

Commit

Permalink
test: test 코드 수정:
Browse files Browse the repository at this point in the history
  • Loading branch information
KarmaPol committed Jun 22, 2024
1 parent c2c2d2a commit 31eb41d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Binary file modified app/service/__pycache__/restaurant_service.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion app/service/restaurant_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
MAX_RESTAURANT_NUM = 15
load_dotenv()

def get_restaurant_recommendation(get_recommendation_req, page):
def get_restaurant_recommendation(get_recommendation_req):
url = 'https://dapi.kakao.com/v2/local/search/keyword.json'
kakao_api_key = os.environ['KAKAO_API_KEY']
headers = {
Expand Down
4 changes: 3 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

cd ~/PycharmProjects/ome2.0
#cd ~/PycharmProjects/ome2.0

pytest
if [ $? -ne 0 ]; then
Expand All @@ -11,5 +11,7 @@ else
fi

pip freeze > requirements.txt
git add requirements.txt
git commit -m "chore: update requirements.txt"
git push
sam sync --stack-name=ome-restaurant-app
Binary file not shown.
3 changes: 1 addition & 2 deletions test/test_restaurant_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ def test_get_restaurant_recommendation(mock_get_genAI_recommendation, mock_get_k
theme="한식",
tag=None
)
page = 1

response = get_restaurant_recommendation(get_recommendation_req, page)
response = get_restaurant_recommendation(get_recommendation_req)
expected_response = Get_recommendation_response(
title='Mock Restaurant',
category='Food > Korean',
Expand Down

0 comments on commit 31eb41d

Please sign in to comment.