Changeset a67c494 in sasview


Ignore:
Timestamp:
Apr 10, 2017 11:06:20 AM (2 years ago)
Author:
Adam Washington <adam.washington@…>
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, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6082048
Parents:
149b8f6
Message:

Include SESANS unit test that users the full loader infrastructure

We need to be sure that SESANS files load with the correct reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_sesans.py

    r35cf5c0 ra67c494  
    55import unittest 
    66from sas.sascalc.dataloader.readers.sesans_reader import Reader 
    7  
     7from sas.sascalc.dataloader.loader import  Loader 
    88 
    99class sesans_reader(unittest.TestCase): 
     
    1313        self.loader = reader.read 
    1414 
    15     def test_sesans_load(self): 
     15    def test_full_load(self): 
    1616        """ 
    17             Test .SES file loading 
     17            Test .SES in the full loader to make sure that the file type is correctly accepted 
    1818        """ 
    19         f = self.loader("sesans_examples/sphere2micron.ses") 
     19        f = Loader().load("sesans_examples/sphere2micron.ses") 
    2020        # self.assertEqual(f, 5) 
    2121        self.assertEqual(len(f.x), 40) 
Note: See TracChangeset for help on using the changeset viewer.