mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
17 lines
313 B
Python
17 lines
313 B
Python
import builtins
|
|
import unittest
|
|
|
|
import warnings
|
|
warnings.simplefilter('ignore', Warning)
|
|
|
|
builtins._ = lambda x: x
|
|
|
|
|
|
class BaseTest(unittest.TestCase):
|
|
def setUp(self):
|
|
__builtins__['_'] = lambda s: s
|
|
self.mocks = []
|
|
|
|
def tearDown(self):
|
|
for m in self.mocks:
|
|
m.stop()
|