_close_application # _init_systems_scroll # Dont test # _get_retro_flags # _get_selected_BOM_systems _get_report_style # get_unique_systems # get_product_database_name _generate_report if __name__ == '__main__': # Initialization context = AppContext() dialog = QDialog() server_name = '.\DT_SQLEXPRESS' driver_name = 'SQL Server Native Client 11.0' database_name = 'PBJobDB_test' product_db = 'ProductDB' path_mdf = r"C:\Users\z003vrzk\.spyder-py3\Scripts\Work\panel_builder\SQLTest\JHW\JobDB.mdf" path_ldf = r"C:\Users\z003vrzk\.spyder-py3\Scripts\Work\panel_builder\SQLTest\JHW\JobDB_Log.ldf" path_j_vars = r"C:\Users\z003vrzk\.spyder-py3\Scripts\Work\panel_builder\SQLTest\JHW\j_vars.ini" context.path_mdf = path_mdf context.path_ldf = path_ldf context.path_j_vars = path_j_vars widget = ReportDialog(context) # widget.exec() # Show dialog # Find the correct product database. If the product database does
def testALEXDualInterleavedTIFF(self, **kwargs): """ Loads and tests ALEX Dual cam view TIFF with interleaved video. The channel order is assumed to be Dexc-Aem -> Aexc-Aem -> Dexc-Dem -> Aexc-Dem (blank) Otherwise it might be impossible to auto-detect... """ self.setFile(**kwargs) self.refreshPlot() self.show() if __name__ == "__main__": ctxt = AppContext() ctxt.load_resources() cls = SetUp() # cls.testAlexQuadTIFF( # path="../resources/movies/Test_Quad_2c.tif", # donor_is_left=True, # donor_is_first=True, # ) # # cls.testAlexDualFITS( # path="../resources/movies/Antibody_RNAP_KG7_22degrees_667.fits", # donor_is_left = True, # donor_is_first = False, # )
# Third party imports from PyQt5.QtWidgets import (QMainWindow, QApplication, QDialog, QFileDialog, QMessageBox, QLineEdit, QCheckBox, QVBoxLayout) from PyQt5.QtTest import QTest from PyQt5 import QtCore # Local imports from ProductUpdateDialog import ProductUpdateDialog from main import AppContext #%% context = AppContext() widget = ProductUpdateDialog(context) class ProductUpdateTest(unittest.TestCase): def setUp(self): # Find the correct product database. If the product database does # Not exist then raise a message to the user path_mdf, path_ldf, database_name = widget.get_product_database_name() return None def test_get_product_database_name(self): # Find the correct product database. If the product database does # Not exist then raise a message to the user