Fix tests
Change-Id: Ieb4508487a147a2f48b03743df7c34513ba59755 Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
717f7b1a6a
commit
7fa50a8316
4
.testr.conf
Normal file
4
.testr.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_command=${PYTHON:-python} -m subunit.run discover tests $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
@ -38,7 +38,7 @@ class TestTitles(testtools.TestCase):
|
||||
return titles
|
||||
|
||||
def _check_titles(self, titles):
|
||||
self.assertEqual(7, len(titles))
|
||||
self.assertEqual(8, len(titles))
|
||||
|
||||
problem = 'Problem description'
|
||||
self.assertIn(problem, titles)
|
||||
@ -46,13 +46,19 @@ class TestTitles(testtools.TestCase):
|
||||
|
||||
proposed = 'Proposed change'
|
||||
self.assertIn(proposed, titles)
|
||||
self.assertEqual(6, len(titles[proposed]))
|
||||
self.assertIn('Alternatives', titles[proposed])
|
||||
self.assertIn('Security impact', titles[proposed])
|
||||
self.assertIn('Other end user impact', titles[proposed])
|
||||
self.assertIn('Performance Impact', titles[proposed])
|
||||
self.assertIn('Other deployer impact', titles[proposed])
|
||||
self.assertIn('Developer impact', titles[proposed])
|
||||
self.assertEqual(
|
||||
[
|
||||
'Alternatives',
|
||||
'Data model impact',
|
||||
'REST API impact',
|
||||
'Security impact',
|
||||
'Pipeline impact',
|
||||
'Other end user impact',
|
||||
'Performance/Scalability Impacts',
|
||||
'Other deployer impact',
|
||||
'Developer impact',
|
||||
],
|
||||
titles[proposed])
|
||||
|
||||
impl = 'Implementation'
|
||||
self.assertIn(impl, titles)
|
||||
|
Loading…
Reference in New Issue
Block a user