def test__create_coverage_badge_Should_CallExpected_When_AccessibleCoverage( self, update_readme_patch, get_line_to_add_patch, *patches): logger_mock = Mock() create_coverage_badge('--report-filename--', '--badge-filename--', logger_mock) update_readme_patch.assert_called_once_with( get_line_to_add_patch.return_value, logger_mock)
def test__create_coverage_badge_Should_CallExpected_When_NotAccessible( self, *patches): logger_mock = Mock() create_coverage_badge('--report-filename--', '--badge-filename--', logger_mock) logger_mock.warn.assert_called()