MATLAB® Test Report

Timestamp:

28-Oct-2025 18:28:57

Host:

runnervmwhb2z

Platform:

glnxa64

MATLAB Version:

25.2.0.2998904 (R2025b)

Number of Tests:

9

Testing Time:

31.9891 seconds

Overall Result:

PASSED

Overview

/home/runner/work/Programming-A-Starter-Project-Using-MATLAB-and-Python/Programming-A-Starter-Project-Using-MATLAB-and-Python/SoftwareTests/

SmokeTests

27.4069 seconds

SolnSmokeTests

4.5822 seconds

Details

/home/runner/work/Programming-A-Starter-Project-Using-MATLAB-and-Python/Programming-A-Starter-Project-Using-MATLAB-and-Python/SoftwareTests/

SmokeTests

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CheckingTheWeather.mlx

The test passed. Duration: 6.6852 seconds

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CreateCurrentWeatherApp.mlx

The test passed. Duration: 15.8400 seconds

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=UsingMATLABwithPython.mlx

The test passed. Duration: 4.8816 seconds

(Overview)

SolnSmokeTests

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CheckingTheWeather.mlx

The test passed. Duration: 0.1073 seconds

(Overview)

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CreateCurrentWeatherApp.mlx

The test passed. Duration: 0.0422 seconds

(Overview)

ExistSolns Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=UsingMATLABwithPython.mlx

The test passed. Duration: 0.0598 seconds

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CheckingTheWeather.mlx

The test passed. Duration: 0.6668 seconds

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=CreateCurrentWeatherApp.mlx

The test passed. Duration: 0.5237 seconds

(Overview)

SmokeRun Class Setup Parameters: Project=matlab.project.Project Test Parameters: File=UsingMATLABwithPython.mlx

The test passed. Duration: 3.1826 seconds

(Overview)

Command Window Text

Running SmokeTests >> Running CheckingTheWeather.mlx You are running Python 3.12 Python was already on your MATLAB path. This Python version might work, but it has not been tested. ans = 'py.dict' currentWeather = Python dict with no properties. {'temp': 274.86, 'feels_like': 270.03, 'temp_min': 273.44, 'temp_max': 276.25, 'pressure': 1003.0, 'humidity': 76.0, 'local_time': '2025-10-28 18:28:22.947281', 'current_time': 1710986897, 'wind_speed': 5.66, 'wind_deg': 280.0, 'clouds': 75.0, 'timezone': -14400, 'sunrise': 1710931672, 'sunset': 1710975450, 'city_name': 'Natick', 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}]} ans = Python dict_keys with properties: mapping: [1×1 py.mappingproxy] dict_keys(['temp', 'feels_like', 'temp_min', 'temp_max', 'pressure', 'humidity', 'local_time', 'current_time', 'wind_speed', 'wind_deg', 'clouds', 'timezone', 'sunrise', 'sunset', 'city_name', 'weather']) ans = 270.0300 curWeather = struct with fields: temp: 274.8600 feels_like: 270.0300 temp_min: 273.4400 temp_max: 276.2500 pressure: 1003 humidity: 76 local_time: [1×26 py.str] current_time: [1×1 py.int] wind_speed: 5.6600 wind_deg: 280 clouds: 75 timezone: [1×1 py.int] sunrise: [1×1 py.int] sunset: [1×1 py.int] city_name: [1×6 py.str] weather: [1×1 py.list] ans = "2025-10-28 18:28:22.947281" ans = datetime 28-Oct-2025 18:28:22 ans = Python list with values: [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}] Use string, double or cell function to convert to a MATLAB array. weather = struct with fields: id: [1×1 py.int] main: [1×6 py.str] description: [1×13 py.str] icon: [1×3 py.str] weather = struct with fields: id: [1×1 py.int] main: "Clouds" description: "broken clouds" icon: [1×3 py.str] The pressure is 752.3117 mmHg. .>> Running CreateCurrentWeatherApp.mlx appdesigner = function_handle with value: @()disp("Open App Designer here.") Did you notice that the pyrun command is using "standard" units? Did you use symunits to convert the pressure from hPa to mmHg? Did you separate the new pressure value from the symbolic unit? Did you convert the pressure value back to a double? .>> Running UsingMATLABwithPython.mlx This is release R2025b, so you can proceed with this script. You are running Python 3.12 Python was already on your MATLAB path. This Python version might work, but it has not been tested. You do not have any Python code defined by the Live Task. Please try again. . Done SmokeTests __________ Running SolnSmokeTests ...>> Running CheckingTheWeatherSoln.mlx You are running Python 3.12 Python was already on your MATLAB path. This Python version might work, but it has not been tested. currentWeather = Python dict with no properties. {'temp': 274.86, 'feels_like': 270.03, 'temp_min': 273.44, 'temp_max': 276.25, 'pressure': 1003.0, 'humidity': 76.0, 'local_time': '2025-10-28 18:28:47.519171', 'current_time': 1710986897, 'wind_speed': 5.66, 'wind_deg': 280.0, 'clouds': 75.0, 'timezone': -14400, 'sunrise': 1710931672, 'sunset': 1710975450, 'city_name': 'Natick', 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}]} ans = 'py.dict' currentWeather = Python dict with no properties. {'temp': 274.86, 'feels_like': 270.03, 'temp_min': 273.44, 'temp_max': 276.25, 'pressure': 1003.0, 'humidity': 76.0, 'local_time': '2025-10-28 18:28:47.519171', 'current_time': 1710986897, 'wind_speed': 5.66, 'wind_deg': 280.0, 'clouds': 75.0, 'timezone': -14400, 'sunrise': 1710931672, 'sunset': 1710975450, 'city_name': 'Natick', 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}]} ans = Python dict_keys with properties: mapping: [1×1 py.mappingproxy] dict_keys(['temp', 'feels_like', 'temp_min', 'temp_max', 'pressure', 'humidity', 'local_time', 'current_time', 'wind_speed', 'wind_deg', 'clouds', 'timezone', 'sunrise', 'sunset', 'city_name', 'weather']) ans = 270.0300 curWeather = struct with fields: temp: 274.8600 feels_like: 270.0300 temp_min: 273.4400 temp_max: 276.2500 pressure: 1003 humidity: 76 local_time: [1×26 py.str] current_time: [1×1 py.int] wind_speed: 5.6600 wind_deg: 280 clouds: 75 timezone: [1×1 py.int] sunrise: [1×1 py.int] sunset: [1×1 py.int] city_name: [1×6 py.str] weather: [1×1 py.list] ans = 'double' ans = 'double' ans = 'py.int' ans = 'py.int' ans = 'py.str' ans = 'py.str' ans = "2025-10-28 18:28:47.519171" ans = datetime 28-Oct-2025 18:28:47 ans = Python list with values: [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04n'}] Use string, double or cell function to convert to a MATLAB array. weather = struct with fields: id: [1×1 py.int] main: [1×6 py.str] description: [1×13 py.str] icon: [1×3 py.str] weather = struct with fields: id: [1×1 py.int] main: "Clouds" description: "broken clouds" icon: [1×3 py.str] The pressure is 752.3117 mmHg. .>> Running CreateCurrentWeatherAppSoln.mlx .>> Running UsingMATLABwithPythonSoln.mlx This is release R2025b, so you can proceed with this script. You are running Python 3.12 Python was already on your MATLAB path. This Python version might work, but it has not been tested. The tax due is: 2.37 tax = 2.3749 Your Python code looks correct, but you may have incorrect pyrun code. It should say: [tax] = pyrun(pycode, ... [ "tax" ], "dollars", dollars, "percent", percent) tax = 2.3749 Hello, Team! . Done SolnSmokeTests __________