Package diffpy :: Package pdffit2 :: Package tests :: Module run
[hide private]
[frames] | no frames]

Source Code for Module diffpy.pdffit2.tests.run

 1  #!/usr/bin/env python 
 2  ############################################################################## 
 3  # 
 4  # diffpy.pdffit2    by DANSE Diffraction group 
 5  #                   Simon J. L. Billinge 
 6  #                   (c) 2012 Trustees of the Columbia University 
 7  #                   in the City of New York.  All rights reserved. 
 8  # 
 9  # File coded by:    Pavol Juhas 
10  # 
11  # See AUTHORS.txt for a list of people who contributed. 
12  # See LICENSE.txt for license information. 
13  # 
14  ############################################################################## 
15   
16  """Convenience module for executing all unit tests with 
17   
18  python -m diffpy.pdffit2.tests.run 
19  """ 
20   
21   
22  if __name__ == '__main__': 
23      import sys 
24      from diffpy.pdffit2.tests import test 
25      # produce zero exit code for a successful test 
26      sys.exit(not test().wasSuccessful()) 
27   
28  # End of file 
29