Ejemplo n.º 1
0
 def test_coverage_fails(self):
     targets = {
         'precog_service.models.funding_instruments': 95,
         'missing_package': 95,
     }
     package_failed = coverage.run_coverage(
         self.path_to_fixture, targets
     )
     self.assertTrue(package_failed)
Ejemplo n.º 2
0
 def test_coverage_deep(self):
     targets = {
         'precog_service.models.funding_instruments': 93,
         'precog_service.models.funding_instruments.cards': 93
     }
     package_failed = coverage.run_coverage(
         self.path_to_fixture, targets
     )
     self.assertFalse(package_failed)