def test(): '''Execute all unit tests for the diffpy.Structure package. Return a unittest TestResult object. ''' from diffpy.Structure.tests import test return test()
#!/usr/bin/env python ############################################################################## # # diffpy.Structure by DANSE Diffraction group # Simon J. L. Billinge # (c) 2010 Trustees of the Columbia University # in the City of New York. All rights reserved. # # File coded by: Pavol Juhas # # See AUTHORS.txt for a list of people who contributed. # See LICENSE_DANSE.txt for license information. # ############################################################################## """Convenience module for executing all unit tests with python -m diffpy.Structure.tests.run """ if __name__ == '__main__': import sys from diffpy.Structure.tests import test # produce zero exit code for a successful test sys.exit(not test().wasSuccessful()) # End of file