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
|
return titles
|
||||||
|
|
||||||
def _check_titles(self, titles):
|
def _check_titles(self, titles):
|
||||||
self.assertEqual(7, len(titles))
|
self.assertEqual(8, len(titles))
|
||||||
|
|
||||||
problem = 'Problem description'
|
problem = 'Problem description'
|
||||||
self.assertIn(problem, titles)
|
self.assertIn(problem, titles)
|
||||||
@ -46,13 +46,19 @@ class TestTitles(testtools.TestCase):
|
|||||||
|
|
||||||
proposed = 'Proposed change'
|
proposed = 'Proposed change'
|
||||||
self.assertIn(proposed, titles)
|
self.assertIn(proposed, titles)
|
||||||
self.assertEqual(6, len(titles[proposed]))
|
self.assertEqual(
|
||||||
self.assertIn('Alternatives', titles[proposed])
|
[
|
||||||
self.assertIn('Security impact', titles[proposed])
|
'Alternatives',
|
||||||
self.assertIn('Other end user impact', titles[proposed])
|
'Data model impact',
|
||||||
self.assertIn('Performance Impact', titles[proposed])
|
'REST API impact',
|
||||||
self.assertIn('Other deployer impact', titles[proposed])
|
'Security impact',
|
||||||
self.assertIn('Developer impact', titles[proposed])
|
'Pipeline impact',
|
||||||
|
'Other end user impact',
|
||||||
|
'Performance/Scalability Impacts',
|
||||||
|
'Other deployer impact',
|
||||||
|
'Developer impact',
|
||||||
|
],
|
||||||
|
titles[proposed])
|
||||||
|
|
||||||
impl = 'Implementation'
|
impl = 'Implementation'
|
||||||
self.assertIn(impl, titles)
|
self.assertIn(impl, titles)
|
||||||
|
Loading…
Reference in New Issue
Block a user