Beispiel #1
0
 def mock_config(self):
     service_config = ServiceConfig()
     service_config.services = {
         GithubService(token="token"),
         GitlabService(token="token"),
     }
     service_config.dry_run = False
     service_config.github_requests_log_path = "/path"
     ServiceConfig.service_config = service_config
Beispiel #2
0
 def setup_class(cls):
     service_config = ServiceConfig()
     service_config.services = {
         GithubService(token="12345"),
         PagureService(instance_url="https://git.stg.centos.org",
                       token="6789"),
     }
     service_config.dry_run = False
     service_config.github_requests_log_path = "/path"
     ServiceConfig.service_config = service_config