Пример #1
0
 def test__create_vulnerabilities_badge_Should_CallExpected_When_Accessible(
         self, update_readme_patch, get_line_to_add_patch, *patches):
     logger_mock = Mock()
     create_vulnerabilities_badge('--report-filename--',
                                  '--badge-filename--', logger_mock)
     update_readme_patch.assert_called_once_with(
         get_line_to_add_patch.return_value, logger_mock)
Пример #2
0
 def test__create_vulnerabilities_badge_Should_CallExpected_When_NotAccessible(
         self, *patches):
     logger_mock = Mock()
     create_vulnerabilities_badge('--report-filename--',
                                  '--badge-filename--', logger_mock)
     logger_mock.warn.assert_called()