Changeset 5c962df in sasmodels for sasmodels/model_test.py
- Timestamp:
- Jan 30, 2016 9:02:03 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/model_test.py
r823e620 r5c962df 43 43 Precision defaults to 5 digits (relative). 44 44 """ 45 from __future__ import print_function 45 46 46 47 import sys … … 55 56 56 57 def 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 """ 57 67 58 68 ModelTestCase = _hide_model_case_from_nosetests() … … 111 121 def _hide_model_case_from_nosetests(): 112 122 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 """ 113 130 def __init__(self, test_name, definition, test_method_name, 114 131 platform, dtype):
Note: See TracChangeset
for help on using the changeset viewer.