File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 1111@router .get ("/ping" )
1212async def pong (settings : Settings = Depends (get_settings )):
1313 return {
14- "ping" : "pong! " ,
14+ "ping" : "pong" ,
1515 "environment" : settings .environment ,
1616 "testing" : settings .testing ,
1717 }
Original file line number Diff line number Diff line change 44def 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 }
You can’t perform that action at this time.
0 commit comments