You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: django-postgres/README.md
+3-17Lines changed: 3 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,25 +19,11 @@ git clone https://github.com/keploy/samples-python.git && cd samples-python/djan
19
19
20
20
Keploy can be installed on Linux directly and on Windows with the help of WSL. Based on your system architecture, install the keploy latest binary release
21
21
22
-
**1. AMD Architecture**
23
-
24
-
```shell
25
-
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz"| tar xz -C /tmp
Keploy can be installed on Linux directly and on Windows with the help of WSL. Based on your system architecture, install the keploy latest binary release
22
22
23
-
**1. AMD Architecture**
24
-
25
-
```shell
26
-
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz"| tar xz -C /tmp
> Note: Update the `SQLALCHEMY_DATABASE_URL` in the `database.py` file if you want to use a keploy with docker.
36
+
49
37
### Capture the Testcases
50
38
51
39
This command will start the recording of API calls using ebpf:-
52
40
53
41
```shell
54
-
sudo -E keploy record -c "uvicorn application.main:app --reload"
42
+
sudo -E PATH=$PATHkeploy record -c "uvicorn application.main:app --reload"
55
43
```
56
44
57
45
Make API Calls using Hoppscotch, Postman or cURL command. Keploy with capture those calls to generate the test-suites containing testcases and data mocks.
@@ -118,7 +106,7 @@ Now all these API calls were captured as **editable** testcases and written to `
118
106
Now let's run the application in test mode.
119
107
120
108
```shell
121
-
sudo -E keploy test -c "uvicorn application.main:app --reload" --delay 10
109
+
sudo -E PATH=$PATHkeploy test -c "uvicorn application.main:app --reload" --delay 10
122
110
```
123
111
124
112
So, no need to setup fake database/apis like Postgres or write mocks for them. Keploy automatically mocks them and, **The application thinks it's talking to Postgres 😄**
0 commit comments