
__author__ = "Jérôme Kieffer"
__license__ = "MIT"
__date__ = "05/09/2017"
__copyright__ = "2015, ESRF"

import unittest
from .test_all import suite


def run():
    runner = unittest.TextTestRunner()
    return runner.run(suite())


if __name__ == '__main__':
    run()


__author__ = "Jérôme Kieffer"
__license__ = "MIT"
__date__ = "15/01/2021"
__copyright__ = "2015-2021, ESRF"

import sys
import unittest
from .test_all import suite


def run_tests():
    """Run test complete test_suite"""
    mysuite = suite()
    runner = unittest.TextTestRunner()
    if not runner.run(mysuite).wasSuccessful():
        print("Test suite failed")
        return 1
    else:
        print("Test suite succeeded")
        return 0


run = run_tests

if __name__ == '__main__':
    sys.exit(run_tests())

Make it compatible with Bob
Make it compatible with Bob
  
  __author__ = "Jérôme Kieffer"
  __license__ = "MIT"
- __date__ = "05/09/2017"
+ __date__ = "15/01/2021"
- __copyright__ = "2015, ESRF"
+ __copyright__ = "2015-2021, ESRF"
  
+ import sys
  import unittest
  from .test_all import suite
  
  
- def run():
+ def run_tests():
+     """Run test complete test_suite"""
+     mysuite = suite()
      runner = unittest.TextTestRunner()
-     return runner.run(suite())
+     if not runner.run(mysuite).wasSuccessful():
+         print("Test suite failed")
+         return 1
+     else:
+         print("Test suite succeeded")
+         return 0
  
  
+ run = run_tests
+ 
  if __name__ == '__main__':
-     run()
+     sys.exit(run_tests())
  
Make it compatible with Bob
## Code Before:

__author__ = "Jérôme Kieffer"
__license__ = "MIT"
__date__ = "05/09/2017"
__copyright__ = "2015, ESRF"

import unittest
from .test_all import suite


def run():
    runner = unittest.TextTestRunner()
    return runner.run(suite())


if __name__ == '__main__':
    run()

## Instruction:
Make it compatible with Bob
## Code After:

__author__ = "Jérôme Kieffer"
__license__ = "MIT"
__date__ = "15/01/2021"
__copyright__ = "2015-2021, ESRF"

import sys
import unittest
from .test_all import suite


def run_tests():
    """Run test complete test_suite"""
    mysuite = suite()
    runner = unittest.TextTestRunner()
    if not runner.run(mysuite).wasSuccessful():
        print("Test suite failed")
        return 1
    else:
        print("Test suite succeeded")
        return 0


run = run_tests

if __name__ == '__main__':
    sys.exit(run_tests())
