示例#1
0
 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'
     )
示例#2
0
 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'
     )
示例#3
0
 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'
     )
示例#4
0
 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'
     )
示例#5
0
 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'
     )
示例#6
0
 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'
     )
示例#7
0
 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'
     )
示例#8
0
 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'
     )