Beispiel #1
0
 def test_testrun_id_invalid(self):
     with pytest.raises(Dump2PolarionException) as excinfo:
         ostriztools._get_testrun_id('INVALID')
     assert 'Cannot find testrun id' in str(excinfo.value)
Beispiel #2
0
 def test_testrun_id_build(self):
     testrun_id = ostriztools._get_testrun_id(
         '5.8.0.17-20170525183055_6317a22')
     assert testrun_id == '5_8_0_17'
Beispiel #3
0
 def test_testrun_id_fill(self):
     testrun_id = ostriztools._get_testrun_id('5.8.0.7-2017')
     assert testrun_id == '5_8_0_07'
Beispiel #4
0
 def test_testrun_id_simple(self):
     testrun_id = ostriztools._get_testrun_id('5.8.0.17')
     assert testrun_id == '5_8_0_17'