Changeset be51cf6 in sasview
- Timestamp:
- Sep 18, 2017 9:46:28 AM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 5e2267e
- Parents:
- f12d96e
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/corfunc/test/utest_corfunc.py
r253eb6c6 rbe51cf6 19 19 20 20 def extrapolate(self): 21 params, extrapolation = self.calculator.compute_extrapolation()21 params, extrapolation, s2 = self.calculator.compute_extrapolation() 22 22 23 23 # Check the extrapolation parameters … … 57 57 break 58 58 59 def transform_callback(self, transform): 60 self.assertIsNotNone(transform) 61 self.assertAlmostEqual(transform.y[0], 1) 62 self.assertAlmostEqual(transform.y[-1], 0, 5) 63 self.transformation = transform 59 def transform_callback(self, transforms): 60 transform1, transform3, idf = transforms 61 self.assertIsNotNone(transform1) 62 self.assertAlmostEqual(transform1.y[0], 1) 63 self.assertAlmostEqual(transform1.y[-1], 0, 5) 64 self.transformation = transform1 64 65 65 66 def extract_params(self): … … 77 78 test() 78 79 except Exception as e: 80 raise 79 81 self.fail("{} failed ({}: {})".format(test, type(e), e)) 80 82 -
test/utest_sasview.py
rb54440d rbe51cf6 62 62 proc = subprocess.Popen(code, shell=True, stdout=subprocess.PIPE, stderr = subprocess.STDOUT) 63 63 std_out, std_err = proc.communicate() 64 #print std_out64 #print(">>>>>> standard out", file_path, "\n", std_out, "\n>>>>>>>>> end stdout", file_path) 65 65 #sys.exit() 66 66 m = re.search("Ran ([0-9]+) test", std_out) … … 82 82 failed += 1 83 83 print("Result for %s (%s): FAILED" % (module_name, module_dir)) 84 print(std_out)84 #print(std_out) 85 85 else: 86 86 passed += 1
Note: See TracChangeset
for help on using the changeset viewer.