Skip to content

Commit

Permalink
Fix test_coverity_no_credentials; No ValueError but stdout print
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Jun 11, 2024
1 parent 8db703a commit e4e7663
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,5 +367,11 @@ def test_cq_description_format(self, path_cwd_mock):
self.assertTrue(filecmp.cmp(out_file, ref_file), '{} differs from {}'.format(out_file, ref_file))

def test_coverity_no_credentials(self):
with self.assertRaises(ValueError):
with patch('sys.stdout', new=StringIO()) as fake_out:
warnings_wrapper(['--coverity', 'bla'])
stdout_log = fake_out.getvalue()
self.assertEqual(
'FILE: bla does not exist',
stdout_log.strip()
)

0 comments on commit e4e7663

Please sign in to comment.