Skip to content

Commit 1a5bdca

Browse files
committed
testing ci
1 parent 661be12 commit 1a5bdca

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
-p 5003:8765 \
7979
${{ env.IMAGE }}-final:latest
8080
- name: Install requirements
81-
run: docker exec fastapi-tdd pip install black==20.8b1 flake8===3.8.4 isort==5.7.0 pytest==6.2.2
81+
run: docker exec fastapi-tdd pip install black==20.8b1 flake8===3.8.4 isort==5.6.4 pytest==6.2.0
8282
- name: Pytest
8383
run: docker exec fastapi-tdd python -m pytest .
8484
- name: Flake8
@@ -93,7 +93,7 @@ jobs:
9393
runs-on: ubuntu-latest
9494
needs: [build, test]
9595
env:
96-
HEROKU_APP_NAME: sleepy-crag-31653
96+
HEROKU_APP_NAME: secret-crag-02876
9797
HEROKU_REGISTRY_IMAGE: registry.heroku.com/${HEROKU_APP_NAME}/summarizer
9898
steps:
9999
- name: Checkout master

project/app/api/ping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@router.get("/ping")
1212
async def pong(settings: Settings = Depends(get_settings)):
1313
return {
14-
"ping": "pong!",
14+
"ping": "pong",
1515
"environment": settings.environment,
1616
"testing": settings.testing,
1717
}

project/tests/test_ping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
def test_ping(test_app):
55
response = test_app.get("/ping")
66
assert response.status_code == 200
7-
assert response.json() == {"environment": "dev", "ping": "pong!", "testing": True}
7+
assert response.json() == {"environment": "dev", "ping": "pong", "testing": True}

0 commit comments

Comments
 (0)