File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy
2
2
3
3
on :
4
- pull_request :
4
+ push :
5
+ branches :
6
+ - ' *'
5
7
6
8
jobs :
7
9
deploy :
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ def test_root_path(self):
8
8
event = {"path" : "/" , "httpMethod" : "GET" }
9
9
response = handle (event , {})
10
10
self .assertEqual (response ['statusCode' ], 200 )
11
- # self.assertEqual(response['body'], '{"message": "Welcome to the API main!"}')
11
+ self .assertEqual (response ['body' ], '{"message": "Welcome to the API main!"}' )
12
12
13
13
def test_hello_path (self ):
14
14
event = {"path" : "/hello" , "httpMethod" : "GET" }
15
15
response = handle (event , {})
16
16
self .assertEqual (response ['statusCode' ], 200 )
17
- # self.assertEqual(response['body'], '{"message": "Hello main!"}')
17
+ self .assertEqual (response ['body' ], '{"message": "Hello main!"}' )
18
18
19
19
def test_not_found_path (self ):
20
20
event = {"path" : "/unknown" , "httpMethod" : "GET" }
You can’t perform that action at this time.
0 commit comments