File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed
Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ commands:
3636 - run :
3737 name : Create ENV file
3838 command : env > .env
39+ - run :
40+ name : Run Tests
41+ command : pytest
3942 package-lambda :
4043 description : " Packages the Python into a zip file."
4144 steps :
Original file line number Diff line number Diff line change 1+ from fastapi .testclient import TestClient
2+
3+ from app .main import app
4+
5+ client = TestClient (app )
6+
7+
8+ def test_read_main ():
9+ response = client .get ("/" )
10+ assert response .status_code == 200
11+ assert response .json () == {"message" : "Secret Key: this is my secret key" }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ aiofiles==0.5.0
22aniso8601 == 7.0.0
33async-exit-stack == 1.0.1
44async-generator == 1.10
5+ attrs == 19.3.0
56certifi == 2020.6.20
67chardet == 3.0.4
78click == 7.1.2
@@ -14,23 +15,33 @@ graphql-relay==2.0.1
1415h11 == 0.9.0
1516httptools == 0.1.1
1617idna == 2.10
18+ importlib-metadata == 1.7.0
19+ iniconfig == 1.0.1
1720itsdangerous == 1.1.0
1821Jinja2 == 2.11.2
1922mangum == 0.9.2
2023MarkupSafe == 1.1.1
24+ more-itertools == 8.4.0
2125orjson == 3.3.0
26+ packaging == 20.4
27+ pluggy == 0.13.1
2228promise == 2.3
29+ py == 1.9.0
2330pydantic == 1.6.1
31+ pyparsing == 2.4.7
32+ pytest == 6.0.1
2433python-dotenv == 0.14.0
2534python-multipart == 0.0.5
2635PyYAML == 5.3.1
2736requests == 2.24.0
2837Rx == 1.6.1
2938six == 1.15.0
3039starlette == 0.13.6
40+ toml == 0.10.1
3141typing-extensions == 3.7.4.2
3242ujson == 3.0.0
3343urllib3 == 1.25.10
3444uvicorn == 0.11.6
3545uvloop == 0.14.0
3646websockets == 8.1
47+ zipp == 3.1.0
You can’t perform that action at this time.
0 commit comments