def test_count_listed_signable_addons(self): tasks.track_validation_stats(self.result( signing_summary={ 'low': 0, 'medium': 0, 'high': 0, }, metadata={ 'listed': True, }, )) self.mock_incr.assert_any_call( 'devhub.validator.results.listed.is_signable' )
def test_count_unsignable_addon_for_high_error(self): tasks.track_validation_stats(self.result( errors=1, signing_summary={ 'low': 0, 'medium': 0, 'high': 1, }, metadata={ 'listed': False, }, )) self.mock_incr.assert_any_call( 'devhub.validator.results.unlisted.is_not_signable' )
def test_count_unlisted_results(self): tasks.track_validation_stats(self.result(metadata={'listed': False})) self.mock_incr.assert_any_call( 'devhub.validator.results.unlisted.success' )
def test_count_all_errors(self): tasks.track_validation_stats(self.result(errors=1)) self.mock_incr.assert_any_call( 'devhub.validator.results.all.failure' )
def test_count_all_successes(self): tasks.track_validation_stats(self.result(errors=0)) self.mock_incr.assert_any_call( 'devhub.validator.results.all.success' )
def test_count_listed_results(self): tasks.track_validation_stats(self.result(metadata={'listed': True})) self.mock_incr.assert_any_call( 'devhub.validator.results.listed.success' )