def setUp(self):
     super().setUp()
     self.writers = [
         mock.create_autospec(interface.MetricWriter),
         mock.create_autospec(interface.MetricWriter)
     ]
     self.writer = multi_writer.MultiWriter(self.writers)
Example #2
0
 def __init__(self, writers: Sequence[interface.MetricWriter]):
   super().__init__(multi_writer.MultiWriter(writers))