Пример #1
0
 def setup(self):
     lookup = mock.Mock()
     Config().set(None, "fuelbeds", "truncation_percentage_threshold")
     Config().set(None, "fuelbeds", "truncation_count_threshold")
     self.estimator_no_truncation = fuelbeds.Estimator(lookup)
Пример #2
0
 def setup(self):
     lookup = mock.Mock()
     self.estimator = fuelbeds.Estimator(lookup)
Пример #3
0
 def setup(self):
     lookup = mock.Mock()
     Config().set(75.0, "fuelbeds", "truncation_percentage_threshold")
     Config().set(2, "fuelbeds", "truncation_count_threshold")
     self.estimator_w_options = fuelbeds.Estimator(lookup)