Skip to content

Commit fb7ffb6

Browse files
pauldrucePrabhakar Kumar
authored andcommitted
Updates integration pytests to react to internal function API changes made in v0.7.3 of matlab-proxy.
1 parent 7fd9883 commit fb7ffb6

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tests/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,20 @@ These tests validate if the Jupyter Notebook Integration works well in presence
2020
```
2121
4. MATLAB Proxy requirements
2222
5. Jupyter MATLAB Proxy requirements
23+
6. Valid MathWorks Account credentials
2324
2425
### How to run
26+
* Set the environment variables TEST_USERNAME and TEST_PASSWORD to be your
27+
MathWorks Account user credentials.
28+
- Bash (Linux/macOS):
29+
```bash
30+
TEST_USERNAME="some-username" && TEST_PASSWORD="some-password"
31+
```
32+
- Powershell (Windows):
33+
```powershell
34+
$env:TEST_USERNAME="some-username"; $env:TEST_PASSWORD="some-password"
35+
```
36+
2537
* Run the following command from the root directory of the project:
2638
```
2739
python3 -m pytest tests/integration

tests/integration/integration_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def perform_basic_checks():
1717
import matlab_proxy.settings
1818

1919
# Validate MATLAB before testing
20-
matlab_path = matlab_proxy.settings.get_matlab_root_path()
20+
_, matlab_path = matlab_proxy.settings.get_matlab_executable_and_root_path()
2121

2222
# Check if MATLAB is in the system path
2323
assert matlab_path is not None, "MATLAB is not in system path"

0 commit comments

Comments
 (0)