Exemplo n.º 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)
Exemplo n.º 2
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)
Exemplo n.º 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)
Exemplo n.º 4
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)
Exemplo n.º 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)