MCPcopy Create free account
hub / github.com/airbnb/binaryalert / unit_test

Method unit_test

cli/manager.py:314–324  ·  view source on GitHub ↗

Run unit tests (*_test.py) Raises: TestFailureError: If any of the unit tests failed.

()

Source from the content-addressed store, hash-verified

312
313 @staticmethod
314 def unit_test() -> None:
315 """Run unit tests (*_test.py)
316
317 Raises:
318 TestFailureError: If any of the unit tests failed.
319 """
320 repo_root = os.path.join(TERRAFORM_DIR, '..')
321 suite = unittest.TestLoader().discover(repo_root, pattern='*_test.py')
322 test_result = unittest.TextTestRunner(verbosity=1).run(suite)
323 if not test_result.wasSuccessful():
324 raise TestFailureError('Unit tests failed')

Callers 1

deployMethod · 0.95

Calls 2

TestFailureErrorClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected