示例#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'])