コード例 #1
0
ファイル: test_client.py プロジェクト: 4teamwork/ftw.raven
 def test_client_is_cached_and_can_be_purged(self):
     os.environ['RAVEN_DSN'] = 'https://*****:*****@sentry.local/1'
     first_client = get_raven_client()
     self.assertTrue(first_client)
     self.assertEquals(id(first_client), id(get_raven_client()))
     purge_raven_client()
     self.assertNotEquals(id(first_client), id(get_raven_client()))
コード例 #2
0
ファイル: test_client.py プロジェクト: 4teamwork/ftw.raven
 def test_client_is_cached_and_can_be_purged(self):
     os.environ['RAVEN_DSN'] = 'https://*****:*****@sentry.local/1'
     first_client = get_raven_client()
     self.assertTrue(first_client)
     self.assertEquals(id(first_client), id(get_raven_client()))
     purge_raven_client()
     self.assertNotEquals(id(first_client), id(get_raven_client()))
コード例 #3
0
ファイル: __init__.py プロジェクト: 4teamwork/ftw.raven
 def tearDown(self):
     purge_raven_client()
コード例 #4
0
ファイル: __init__.py プロジェクト: 4teamwork/ftw.raven
 def tearDown(self):
     purge_raven_client()