Skip to content

Commit

Permalink
Healthcheck (#59)
Browse files Browse the repository at this point in the history
* Healthcheck

* /healthcheck returns a 404 #5
  • Loading branch information
pachCode authored and ricardo8990 committed Mar 11, 2019
1 parent 7785a32 commit 9ee706e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions speid/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


@app.route('/')
@app.route('/healthcheck')
def health_check():
return "I'm healthy!"

Expand Down
4 changes: 4 additions & 0 deletions test/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def test_ping(self, app):
res = app.get('/')
assert res.status_code == 200

def test_health_check(self, app):
res = app.get('/healthcheck')
assert res.status_code == 200

@my_vcr.use_cassette('test/cassettes/test_create_order.yaml')
def test_save_transaction(self):
transaction_request = {
Expand Down

0 comments on commit 9ee706e

Please sign in to comment.