Ignore:
Timestamp:
Nov 14, 2017 4:04:41 AM (6 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:
fa81e94
Parents:
f1f3e6a
Message:

Fixes to the Invariant perspective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Invariant/UnitTesting/InvariantDetailsTest.py

    rf1f3e6a r7c487846  
    88from PyQt5.QtTest import QTest 
    99from PyQt5.QtCore import Qt 
    10 from mock import MagicMock 
    11 from mock import patch 
     10from unittest.mock import MagicMock 
     11from unittest.mock import patch 
    1212 
    1313from twisted.internet import threads 
     
    138138        self.widget.qstar_total = 10 
    139139        self.widget.progress_qstar = 'error' 
    140         self.assertEqual(self.widget.checkValues(), "Error occurred when computing invariant from data.\n Invariant Q contribution is greater than 100% .\n") 
     140        self.assertIn("Error occurred when computing invariant from data.", self.widget.checkValues()) 
    141141 
    142142        self.widget.progress_qstar = 0 
Note: See TracChangeset for help on using the changeset viewer.