From 2c4ef1d5160c8e44a83d4fe351b877939ad0dbcd Mon Sep 17 00:00:00 2001 From: Sebastian <seb.miksch@aon.at> Date: Sun, 20 Mar 2022 20:23:53 +0100 Subject: [PATCH] new test tab opens without test specification loaded --- Tst/codeblockreusefeature/codeblockreusefeature.cfg | 2 +- Tst/tst/data_model.py | 8 ++++++++ Tst/tst/tst.cfg | 4 ++-- Tst/tst/tst.py | 2 +- Tst/tst/view.py | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Tst/codeblockreusefeature/codeblockreusefeature.cfg b/Tst/codeblockreusefeature/codeblockreusefeature.cfg index d899269..de7a3cc 100644 --- a/Tst/codeblockreusefeature/codeblockreusefeature.cfg +++ b/Tst/codeblockreusefeature/codeblockreusefeature.cfg @@ -25,6 +25,6 @@ threadname = True main-window-height = 791 main-window-width = 612 paned-position-search = 406 -paned-position-command-code = 105 +paned-position-command-code = 68 paned-position-comment = 462 diff --git a/Tst/tst/data_model.py b/Tst/tst/data_model.py index 2c795ea..48bf7b8 100644 --- a/Tst/tst/data_model.py +++ b/Tst/tst/data_model.py @@ -989,6 +989,10 @@ class TestSpecification: @precon_name.setter def precon_name(self, value: str): + if value == None: + value = "None" + else: + pass assert isinstance(value, str) self._precon_name = value @@ -1016,6 +1020,10 @@ class TestSpecification: @postcon_name.setter def postcon_name(self, value: str): + if value == None: + value = "None" + else: + pass assert isinstance(value, str) self._postcon_name = value diff --git a/Tst/tst/tst.cfg b/Tst/tst/tst.cfg index 1030e09..2f48bdb 100644 --- a/Tst/tst/tst.cfg +++ b/Tst/tst/tst.cfg @@ -14,8 +14,8 @@ output-file-path = ${paths:tst}/logs_test_runs/output_files/ [tst-preferences] show-json-view = True -main-window-height = 1043 -main-window-width = 1920 +main-window-height = 752 +main-window-width = 1386 paned-position = 919 paned-position-codeblockreuse = 520 diff --git a/Tst/tst/tst.py b/Tst/tst/tst.py index 21ab05b..9b0efd6 100755 --- a/Tst/tst/tst.py +++ b/Tst/tst/tst.py @@ -196,7 +196,7 @@ class TstAppWindow(Gtk.ApplicationWindow): def __init__(self, logger=logger, *args, **kwargs): super().__init__(*args, **kwargs) self.logger = logger - self.logger.info('Initializing a instance of the class TstAppWindow') + self.logger.info('Initializing an instance of the class TstAppWindow') self.product_paths = [] # actions diff --git a/Tst/tst/view.py b/Tst/tst/view.py index ae636b3..4e106f1 100644 --- a/Tst/tst/view.py +++ b/Tst/tst/view.py @@ -71,7 +71,7 @@ class Board(Gtk.Box): """ def __init__(self, model, app, filename=None, logger=logger): """ - When a instance is initialized: + When an instance is initialized: * a data model instance is created * the toolbar is created * a instance of a grid is added -- GitLab