Skip to content

Commit

Permalink
Fixes to Unit Tests Errors
Browse files Browse the repository at this point in the history
* When app.debug is set to True in the app, this caused
  the IFTTT endpoints test to fail. So the fix here basically
  contextualize the debug mode to be set only when we are running
  the app in testing mode, i.e. app.test_client().

* Now, all unit tests passes and also Integration tests / endpoint
  tests on IFTTT passes as well.

Signed-off-by: Alangi Derick <alangiderick@gmail.com>
  • Loading branch information
xSavitar committed Jul 19, 2016
1 parent f75b17a commit 154a55d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ifttt/ifttt-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

import core, json, unittest
import core, json

from .utils import snake_case

Expand All @@ -48,6 +48,7 @@
UserRevisions]

app = core.app.test_client()
app.application.debug = True

def check_response(test_trigger, test_params):
"""Checks the response to see if the data property of the trigger
Expand Down

0 comments on commit 154a55d

Please sign in to comment.