Skip to content
This repository was archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Start flailing at a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Nov 24, 2016
1 parent 6a56ef2 commit b32bc05
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/py/test_error_page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals

from gratipay.testing.harness import Harness




class Tests(Harness):

def test_error_page_doesnt_choke_on_no_user(self):
try:
def fail():
raise Exception
self.client.website.algorithm.insert_after('parse_environ_into_request', fail)
response = self.client.GET('/', raise_immediately=False)
import pdb; pdb.set_trace()
finally:
self.client.website.algorithm.remove('fail')

0 comments on commit b32bc05

Please sign in to comment.