Changeset 5c962df in sasmodels for sasmodels/model_test.py


Ignore:
Timestamp:
Jan 30, 2016 9:02:03 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
5925e90
Message:

delint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    r823e620 r5c962df  
    4343Precision defaults to 5 digits (relative). 
    4444""" 
     45from __future__ import print_function 
    4546 
    4647import sys 
     
    5556 
    5657def make_suite(loaders, models): 
     58    """ 
     59    Construct the pyunit test suite. 
     60 
     61    *loaders* is the list of kernel drivers to use, which is one of 
     62    *["dll", "opencl"]*, *["dll"]* or *["opencl"]*.  For python models, 
     63    the python driver is always used. 
     64 
     65    *models* is the list of models to test, or *["all"]* to test all models. 
     66    """ 
    5767 
    5868    ModelTestCase = _hide_model_case_from_nosetests() 
     
    111121def _hide_model_case_from_nosetests(): 
    112122    class ModelTestCase(unittest.TestCase): 
     123        """ 
     124        Test suit for a particular model with a particular kernel driver. 
     125 
     126        The test suite runs a simple smoke test to make sure the model 
     127        functions, then runs the list of tests at the bottom of the model 
     128        description file. 
     129        """ 
    113130        def __init__(self, test_name, definition, test_method_name, 
    114131                     platform, dtype): 
Note: See TracChangeset for help on using the changeset viewer.