Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Fix test to support NoFeatureFlagFound.
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Jul 30, 2014
1 parent f0ee02a commit 8a42958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_edge_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ def test_running_default_handler_on_app_that_was_never_set_up_returns_false(self
test_app = Flask(__name__)

with test_app.test_request_context("/"):
self.assertFalse(feature_flags.AppConfigFlagHandler("BOGUS_FEATURE_FLAG"))
self.assertRaises(feature_flags.NoFeatureFlagFound,
feature_flags.AppConfigFlagHandler, "BOGUS_FEATURE_FLAG")

0 comments on commit 8a42958

Please sign in to comment.