Example #1
0
 def _get_model(overrides):
     config_values = {
         'base_url': 'http://crashanalysis.com',
         'save_root': '',
         'save_download': True,
         'save_seconds': 1000,
     }
     config_values.update(overrides)
     cls = correlations.Correlations
     config = DotDict()
     config.http = DotDict()
     config.http.correlations = DotDict(config_values)
     return cls(config)
 def _get_model(overrides=None):
     config_values = {
         'base_url': 'http://crashanalysis.com',
         'save_root': '',
         'save_download': False,
         'save_seconds': 1000,
     }
     if overrides:
         config_values.update(overrides)
     cls = correlations.CorrelationsSignatures
     config = DotDict()
     config.logger = mock.Mock()
     config.http = DotDict()
     config.http.correlations = DotDict(config_values)
     return cls(config=config)
Example #3
0
 def _get_model(overrides=None):
     config_values = {
         'base_url': 'http://crashanalysis.com',
         'save_root': '',
         'save_download': False,
         'save_seconds': 1000,
     }
     if overrides:
         config_values.update(overrides)
     cls = correlations.CorrelationsSignatures
     config = DotDict()
     config.logger = mock.Mock()
     config.http = DotDict()
     config.http.correlations = DotDict(config_values)
     return cls(config=config)
 def _get_model(self, overrides):
     new_temp_dir = tempfile.mkdtemp()
     self.temp_dirs.append(new_temp_dir)
     config_values = {
         'base_url': 'http://crashanalysis.com',
         'save_root': new_temp_dir,
         'save_download': True,
         'save_seconds': 1000,
     }
     config_values.update(overrides)
     cls = correlations.Correlations
     config = DotDict()
     config.logger = mock.Mock()
     config.http = DotDict()
     config.http.correlations = DotDict(config_values)
     return cls(config=config)
Example #5
0
 def _get_model(self, overrides):
     new_temp_dir = tempfile.mkdtemp()
     self.temp_dirs.append(new_temp_dir)
     config_values = {
         'base_url': 'http://crashanalysis.com',
         'save_root': new_temp_dir,
         'save_download': True,
         'save_seconds': 1000,
     }
     config_values.update(overrides)
     cls = correlations.Correlations
     config = DotDict()
     config.logger = mock.Mock()
     config.http = DotDict()
     config.http.correlations = DotDict(config_values)
     return cls(config=config)