Ignore:
Timestamp:
Jan 12, 2017 4:09:23 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
2e3e959
Parents:
87cc73a
Message:

Added tests for PlotProperties?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/UnitTesting/TestUtils.py

    r87cc73a rdb5cd8d  
    22from PyQt4.QtGui import * 
    33from PyQt4.QtTest import * 
     4import inspect 
    45 
    5 def WarningNotImplemented(method_name): 
    6     """ Prints warning about a non-implemented test """ 
    7     print("\nWARNING: %s needs implementing!"%method_name) 
     6def WarningTestNotImplemented(method_name=None): 
     7    """ 
     8    Prints warning about a non-implemented test. 
     9    Test name retrieved from stack trace. 
     10    """ 
     11    if method_name is not None: 
     12        print("\nWARNING: %s needs implementing!"%method_name) 
     13    else: 
     14        (frame, filename, line_number, 
     15            function_name, lines, index) = inspect.getouterframes(inspect.currentframe())[1] 
     16        print("\nWARNING: %s needs implementing!"%function_name) 
    817 
    918class QtSignalSpy(QObject): 
Note: See TracChangeset for help on using the changeset viewer.