Skip to content

Commit 5d79c30

Browse files
committed
restructure: use and mock it to avoid editor calls in CI
1 parent d0f10b4 commit 5d79c30

8 files changed

Lines changed: 20 additions & 1 deletion
-66 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
17 Bytes
Binary file not shown.

Scripts/UsingMATLABwithPython.mlx

5 Bytes
Binary file not shown.

SoftwareTests/PreFiles/PreCheckingTheWeatherSoln.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
% % "currentWeather = checkcurrentweather.parse_current_json(json_data)"
1717
% % ];
1818
% apikey = "TestString";
19+
writelines("",fullfile(currentProject().RootFolder,"Scripts","myAPIkey.txt"))
1920
% pyrun = @(txt,out,varargin)TestPyRun(pycode,out,varargin);
2021
end
2122
%

SoftwareTests/PreFiles/PreCreateCurrentWeatherApp.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33
KnownIssuesID = "";
44
% ---- Pre-run commands -----
55

6-
appdesigner = @()disp("Open App Designer here.");
6+
appdesigner = @()disp("Open App Designer here.");
7+
open = @(str)MyOpen(str);
8+
9+
function MyOpen(str)
10+
assert(exist(str,"file"))
11+
disp("Open the file " + str + " in Editor.")
12+
end

SoftwareTests/PreFiles/PreUsingMATLABwithPython.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
KnownIssuesID = "";
44
% ---- Pre-run commands -----
55

6+
open = @(str)MyOpen(str);
7+
8+
function MyOpen(str)
9+
assert(exist(str,"file"))
10+
disp("Open the file " + str + " in Editor.")
11+
end

SoftwareTests/PreFiles/PreUsingMATLABwithPythonSoln.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
KnownIssuesID = "";
44
% ---- Pre-run commands -----
55

6+
open = @(str)MyOpen(str);
7+
8+
function MyOpen(str)
9+
assert(exist(str,"file"))
10+
disp("Open the file " + str + " in Editor.")
11+
end

0 commit comments

Comments
 (0)