Conditions | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from teamcity_base_test_case import TeamCityBaseActionTestCase |
||
17 | def test_run_api_success(self): |
||
18 | expected = self.load_json("build_job.json") |
||
19 | |||
20 | action, adapter = self.__get_mocked_action() |
||
21 | adapter.register_uri('POST', |
||
22 | "mock://example.teamcityagent.com:8080/httpAuth/rest/buildQueue", |
||
23 | text=self.get_fixture_content("build_job,json")) |
||
24 | |||
25 | result = action.run("test", "testbranch") |
||
26 | self.assertEqual(result, expected) |
||
27 |