ScriptCollection 4.4.50__py3-none-any.whl → 4.4.51__py3-none-any.whl
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.
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TFCPS/TFCPS_Tools_General.py +18 -0
- {scriptcollection-4.4.50.dist-info → scriptcollection-4.4.51.dist-info}/METADATA +1 -1
- {scriptcollection-4.4.50.dist-info → scriptcollection-4.4.51.dist-info}/RECORD +7 -7
- {scriptcollection-4.4.50.dist-info → scriptcollection-4.4.51.dist-info}/WHEEL +0 -0
- {scriptcollection-4.4.50.dist-info → scriptcollection-4.4.51.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.4.50.dist-info → scriptcollection-4.4.51.dist-info}/top_level.txt +0 -0
|
@@ -261,6 +261,24 @@ class TFCPS_Tools_General:
|
|
|
261
261
|
#TODO show warning somehow for enabled codeunits which depend on ignored codeunits
|
|
262
262
|
return sorted_codeunits
|
|
263
263
|
|
|
264
|
+
@GeneralUtilities.check_arguments
|
|
265
|
+
def update_visual_regression_baselines_of_all_codeunits(self, repository_folder: str) -> None:
|
|
266
|
+
"""Updates the visual-regression-baseline-images of every codeunit of the repository which has them.
|
|
267
|
+
|
|
268
|
+
For each codeunit the script "Other/QualityCheck/UpdateVisualRegressionBaselines.py" is run (in that folder)
|
|
269
|
+
if it exists; a codeunit which does not have that script (because it has no visual-regression-tests) is
|
|
270
|
+
skipped. This lets a repository update the baselines of all of its codeunits with a single call, without
|
|
271
|
+
having to list the codeunits anywhere."""
|
|
272
|
+
codeunits: list[str] = self.get_codeunits(repository_folder)
|
|
273
|
+
for codeunit_name in codeunits:
|
|
274
|
+
script_folder: str = os.path.join(repository_folder, codeunit_name, "Other", "QualityCheck")
|
|
275
|
+
script_file: str = os.path.join(script_folder, "UpdateVisualRegressionBaselines.py")
|
|
276
|
+
if os.path.isfile(script_file):
|
|
277
|
+
self.__sc.log.log(f"Update visual-regression-baselines of codeunit {codeunit_name}...")
|
|
278
|
+
self.__sc.run_program(GeneralUtilities.get_python_executable(), "UpdateVisualRegressionBaselines.py", script_folder, print_live_output=True)
|
|
279
|
+
else:
|
|
280
|
+
self.__sc.log.log(f"Codeunit {codeunit_name} has no visual-regression-baselines to update.", LogLevel.Debug)
|
|
281
|
+
|
|
264
282
|
@GeneralUtilities.check_arguments
|
|
265
283
|
def repository_has_codeunits(self, repository: str, ignore_disabled_codeunits: bool = True) -> bool:
|
|
266
284
|
return 0<len(self.get_codeunits(repository, ignore_disabled_codeunits))
|
|
@@ -11,7 +11,7 @@ ScriptCollection/ProgramRunnerSudo.py,sha256=vwKq-MOcqsgiKhSf-MBUDBC_UyaU8evP3Ro
|
|
|
11
11
|
ScriptCollection/RepositoryDiagramGenerator.py,sha256=K_u2NW_p4ozdWD50irJEkkcDVa70TcUJpZN63TeXSLw,7092
|
|
12
12
|
ScriptCollection/RepositoryHistoryAnalyzer.py,sha256=u9141B9D-Kef-9uo3yR7BXKUMzIKLVsesnYk7H-cWm4,6157
|
|
13
13
|
ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
|
|
14
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
14
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=ERfrLfMtMI37dBOw9KOHrNST5HLkO-JAi6osOs6gJaE,310633
|
|
15
15
|
ScriptCollection/TestKind.py,sha256=jqLJwNvQeyea7SZf-UFzMC9pM0znv4do7FIC1xq8u9M,1672
|
|
16
16
|
ScriptCollection/UnassignedVariablesCheck.py,sha256=8xNcp1D5HeOLO1a1NEerq2TsnpFhw7yzYPkaay-oisY,3804
|
|
17
17
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -47,7 +47,7 @@ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=oYEhz5ZWMnbu97_CcYEqdDxakUF
|
|
|
47
47
|
ScriptCollection/TFCPS/TFCPS_OCIImageSecretScan.py,sha256=Jb7AaMcJDW-gYEYBUVZAG3QLTTNWmXlvVEW-lZsykws,14821
|
|
48
48
|
ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=XLVsFTA1jvfDbZ7wYJgIdEByZhF_bYVbA5jkisuvK4k,2322
|
|
49
49
|
ScriptCollection/TFCPS/TFCPS_RemoteBuild.py,sha256=2Tx5HLk1ZftBWDCTiGZdP2QiiGNyWsEuTCSt33dNQjc,23891
|
|
50
|
-
ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=
|
|
50
|
+
ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=eGmKZSoS2EQin-qrHTewJrvm-2VzdZhw6d0LceIonF0,158891
|
|
51
51
|
ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py,sha256=6_63udxHnPlu_TMk_ftLZTnzriJO8MCxVCVAsweZqHs,37073
|
|
52
52
|
ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
53
53
|
ScriptCollection/TFCPS/CPP/TFCPS_CodeUnitSpecific_CPP.py,sha256=BNZPMjGiWLMBH7QDtP06WEVLMnI38NLX4Dpd13bSbi4,16614
|
|
@@ -73,8 +73,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkML
|
|
|
73
73
|
ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
74
|
ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=ILVhJHvwG5TvPBBqSvyACYb7W9QnWrJpxKgHu8IQu4g,9249
|
|
75
75
|
ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
|
-
scriptcollection-4.4.
|
|
77
|
-
scriptcollection-4.4.
|
|
78
|
-
scriptcollection-4.4.
|
|
79
|
-
scriptcollection-4.4.
|
|
80
|
-
scriptcollection-4.4.
|
|
76
|
+
scriptcollection-4.4.51.dist-info/METADATA,sha256=7QfMnJPmt0aJhlyM48ax7IReCWPfaFxOAHnV5sXXUB0,8032
|
|
77
|
+
scriptcollection-4.4.51.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
78
|
+
scriptcollection-4.4.51.dist-info/entry_points.txt,sha256=1nA5gUD0Y9L105JGIfTnnqDZhFjzKcFpFaUSrLn-Sw0,5991
|
|
79
|
+
scriptcollection-4.4.51.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
80
|
+
scriptcollection-4.4.51.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|