예제 #1
0
    def tearDown(self):
        local.__release_local__()
        self.app.config['tipfy']['dev'] = True

        Acl.roles_map = {}
        Acl.roles_lock = CURRENT_VERSION_ID
        _rules_map.clear()
예제 #2
0
    def tearDown(self):
        local.__release_local__()
        self.app.config['tipfy']['dev'] = True

        Acl.roles_map = {}
        Acl.roles_lock = CURRENT_VERSION_ID
        _rules_map.clear()
예제 #3
0
파일: test_utils.py 프로젝트: AmirS2/tipfy
 def tearDown(self):
     local.__release_local__()
예제 #4
0
파일: test_auth.py 프로젝트: AmirS2/tipfy
    def tearDown(self):
        local.__release_local__()

        os.environ.pop('USER_EMAIL', None)
        os.environ.pop('USER_ID', None)
        os.environ.pop('USER_IS_ADMIN', None)
예제 #5
0
 def tearDown(self):
     local.__release_local__()
예제 #6
0
    def tearDown(self):
        local.__release_local__()
        fake_local.clear()

        from tipfy.appengine import xmpp
        xmpp.xmpp = self.xmpp_module
예제 #7
0
파일: testing.py 프로젝트: acettt/yandex
 def __exit__(self, type, value, traceback):
     local.__release_local__()
예제 #8
0
 def test_translations_not_set(self):
     local.__release_local__()
     self.assertRaises(RuntimeError, i18n.gettext, 'foo')
예제 #9
0
 def __exit__(self, type, value, traceback):
     local.__release_local__()
예제 #10
0
 def tearDown(self):
     tipfy.app.APPENGINE = self.appengine
     tipfy.app.DEV_APPSERVER = self.dev_appserver
     local.__release_local__()
예제 #11
0
    def tearDown(self):
        local.__release_local__()
        fake_local.clear()

        from tipfy.appengine import xmpp
        xmpp.xmpp = self.xmpp_module
예제 #12
0
 def test_translations_not_set(self):
     local.__release_local__()
     self.assertRaises(RuntimeError, i18n.gettext, 'foo')