Esempio n. 1
0
 def setUp(self):
     super(UsersTest, self).setUp()
     self.useFixture(AptInstalledJenkins(self.fakes))
     self.fakes.jenkins.scripts[GET_TOKEN_SCRIPT.format("admin")] = "abc\n"
     self.users = Users()
Esempio n. 2
0
 def setUp(self):
     super(UsersTest, self).setUp()
     self.useFixture(AptInstalledJenkins(self.fakes))
     self.fakes.jenkins.scripts[GET_TOKEN_SCRIPT.format("admin")] = "abc\n"
     self.users = Users()
Esempio n. 3
0
 def setUp(self):
     super(ApiTest, self).setUp()
     self.useFixture(JenkinsConfiguredAdmin(self.fakes))
     self.fakes.jenkins.scripts[GET_TOKEN_SCRIPT.format("admin")] = "abc\n"
     self.api = Api()
Esempio n. 4
0
 def setUp(self):
     super(ApiTest, self).setUp()
     self.useFixture(JenkinsConfiguredAdmin(self.fakes))
     self.fakes.jenkins.scripts[GET_TOKEN_SCRIPT.format("admin")] = "abc\n"
     self.api = Api()