Skip to content

Commit 4f68a60

Browse files
committed
Revert "Trigger deploy on pull request"
This reverts commit 6f7e3e1.
1 parent 6f7e3e1 commit 4f68a60

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Deploy
22

33
on:
4-
pull_request:
4+
push:
5+
branches:
6+
- '*'
57

68
jobs:
79
deploy:

tests/test_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ def test_root_path(self):
88
event = {"path": "/", "httpMethod": "GET"}
99
response = handle(event, {})
1010
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!"}')
1212

1313
def test_hello_path(self):
1414
event = {"path": "/hello", "httpMethod": "GET"}
1515
response = handle(event, {})
1616
self.assertEqual(response['statusCode'], 200)
17-
#self.assertEqual(response['body'], '{"message": "Hello main!"}')
17+
self.assertEqual(response['body'], '{"message": "Hello main!"}')
1818

1919
def test_not_found_path(self):
2020
event = {"path": "/unknown", "httpMethod": "GET"}

0 commit comments

Comments
 (0)