File tree 3 files changed +18
-4
lines changed
examples/python/fastapi/postgres
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 91
91
--error-format long \
92
92
--variable SERVER_URL=http://127.0.0.1:${{ matrix.application-port }} \
93
93
--test \
94
- tests/crud.hurl
94
+ tests/crud.hurl \
95
+ tests/misc.hurl
95
96
96
97
- name : Show application logs
97
98
if : failure()
Original file line number Diff line number Diff line change 3
3
router = APIRouter ()
4
4
5
5
6
- @router .get ('/v1/hello ' )
7
- def greetings ():
8
- return {"hello " : "world!" }
6
+ @router .get ('/custom/route ' )
7
+ def customRoute ():
8
+ return { "custom " : True }
Original file line number Diff line number Diff line change
1
+ #
2
+ # Tests for various operations
3
+ #
4
+ # How to run:
5
+ # hurl --variable SERVER_URL=http://127.0.0.1:3000 misc.hurl --test
6
+ #
7
+
8
+
9
+ # Custom route
10
+ GET {{ SERVER_URL }}/custom/route
11
+ HTTP 200
12
+ [Asserts]
13
+ jsonpath "$.custom" == true
You can’t perform that action at this time.
0 commit comments