happyscript 0.0.53__tar.gz → 0.0.54__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {happyscript-0.0.53 → happyscript-0.0.54}/PKG-INFO +1 -1
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/__init__.py +1 -1
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptmanager.py +3 -3
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/staticscriptmanager.py +6 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/PKG-INFO +1 -1
- {happyscript-0.0.53 → happyscript-0.0.54}/pyproject.toml +1 -1
- {happyscript-0.0.53 → happyscript-0.0.54}/README.md +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/__init__.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/chart.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/histogram_chart.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/histogram_series.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/matplotlib_chart.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/panel_charts.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/scatter_chart.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/scatter_series.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/time_chart.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/charts/time_series.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_askchoice.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_askimage.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_main.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_ontestfailure.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_serials.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_settings.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/form_stop.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/forms/formsbase.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/imglib.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/inifile.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/modulereader.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_log.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_messages.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_scripts2.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panel_tests.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/panels/panelsbase.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptartwork.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptcontrol.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptexceptions.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptgui.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptinfo.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptparams.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptreader.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/scriptrunner.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/exit.png +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/forms.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/splashmenuform.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/splashmenu/splashmenumain.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/global_log_handler.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/log_to_text.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/logtoxml.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testlog/printredirect.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/testloghandler.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/userpanel/userpanel.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript/userpanel/userpanelvalue.py +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/SOURCES.txt +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/dependency_links.txt +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/requires.txt +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/happyscript.egg-info/top_level.txt +0 -0
- {happyscript-0.0.53 → happyscript-0.0.54}/setup.cfg +0 -0
|
@@ -16,7 +16,7 @@ class ScriptManager(StaticScriptManager):
|
|
|
16
16
|
classdocs
|
|
17
17
|
'''
|
|
18
18
|
|
|
19
|
-
def __init__(self, title=None, colors = None, use_yaml=False):
|
|
19
|
+
def __init__(self, title:str=None, colors = None, use_yaml:bool=False):
|
|
20
20
|
'''
|
|
21
21
|
Constructor
|
|
22
22
|
|
|
@@ -30,10 +30,10 @@ class ScriptManager(StaticScriptManager):
|
|
|
30
30
|
# R E A D S C R I P T S
|
|
31
31
|
#============================================================================================================
|
|
32
32
|
|
|
33
|
-
def add_scripts(self, script_dir, group_name = None):
|
|
33
|
+
def add_scripts(self, script_dir:str, group_name:str = None):
|
|
34
34
|
''' Reads scripts from a directory.
|
|
35
35
|
Then adds a script treeview window with the scripts from the specified directory.
|
|
36
|
-
@param
|
|
36
|
+
@param script_dir Full path to the directory with scripts
|
|
37
37
|
@param group_name Name for this set of scripts. Dirname will be used if not specified.
|
|
38
38
|
'''
|
|
39
39
|
full_path = os.path.normpath(os.path.abspath(script_dir))
|
|
@@ -241,6 +241,12 @@ class StaticScriptManager(object):
|
|
|
241
241
|
def add_test(self, description, scriptname, **args):
|
|
242
242
|
''' Add a test to the test list.
|
|
243
243
|
'''
|
|
244
|
+
if not isinstance(scriptname, str):
|
|
245
|
+
if callable(scriptname):
|
|
246
|
+
scriptname = f"{scriptname.__module__}.{scriptname.__name__}"
|
|
247
|
+
else:
|
|
248
|
+
logging.error(f"Invalid script given for test '{description}'.")
|
|
249
|
+
|
|
244
250
|
# self.dialog.add_test(description, scriptname)
|
|
245
251
|
self.dialog.pnlTests.add_test( description, scriptname, **args )
|
|
246
252
|
|
|
@@ -20,7 +20,7 @@ build-backend = "setuptools.build_meta"
|
|
|
20
20
|
[project]
|
|
21
21
|
name = "happyscript"
|
|
22
22
|
description = "Framework for running scripts"
|
|
23
|
-
version = "0.0.
|
|
23
|
+
version = "0.0.54"
|
|
24
24
|
readme = "README.md"
|
|
25
25
|
requires-python = ">=3.5"
|
|
26
26
|
dependencies = [ "wxpython", "numpy" ]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|