コード例 #1
0
 def test_jenkins_server(self):
     assert parse_args(['-s', 'http://localhost:8080'])
コード例 #2
0
 def test_missing_jenkins_server(self):
     with pytest.raises(SystemExit):
         parse_args(['-s'])
コード例 #3
0
 def test_missing_job_name(self):
     with pytest.raises(SystemExit):
         parse_args(['-f', ice_setup_xml_file, '-n'])
コード例 #4
0
 def test_ice_setup(self):
     assert parse_args(['-f', ice_setup_xml_file, '-n', 'ice-setup'])
コード例 #5
0
 def test_missing_filename(self):
     with pytest.raises(SystemExit):
         parse_args(['-f'])