Example #1
0
    def test_ignore_regex(self):
        cfg_path = os.path.join(os.path.dirname(__file__), 'assets', 'errbit_ignore.json')
        os.environ['ERRBIT_IGNORE'] = cfg_path
        client = Client()

        self.assertEquals(
            ["^AttributeError\\b", "regex2"],
            client.get_ignore_regex())
Example #2
0
 def test_ignore_regex_without_cfg(self):
     client = Client()
     self.assertEquals(
         [],
         client.get_ignore_regex())