You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('Should detect pytest ModuleNotFoundError and provide specific message',()=>{
12
-
consterrorMessage='Traceback (most recent call last):\n File "<string>", line 1, in <module>\n import pytest\nModuleNotFoundError: No module named \'pytest\'';
13
-
12
+
consterrorMessage=
13
+
'Traceback (most recent call last):\n File "<string>", line 1, in <module>\n import pytest\nModuleNotFoundError: No module named \'pytest\'';
expect(result.label).to.equal('pytest Not Installed [workspace]');
17
-
expect(result.error).to.equal('pytest is not installed in the selected Python environment. Please install pytest to enable test discovery and execution.');
18
+
expect(result.error).to.equal(
19
+
'pytest is not installed in the selected Python environment. Please install pytest to enable test discovery and execution.',
20
+
);
18
21
});
19
22
20
23
test('Should detect pytest ImportError and provide specific message',()=>{
21
24
consterrorMessage='ImportError: No module named pytest';
expect(result.label).to.equal('pytest Not Installed [workspace]');
26
-
expect(result.error).to.equal('pytest is not installed in the selected Python environment. Please install pytest to enable test discovery and execution.');
29
+
expect(result.error).to.equal(
30
+
'pytest is not installed in the selected Python environment. Please install pytest to enable test discovery and execution.',
31
+
);
27
32
});
28
33
29
34
test('Should use generic error for non-pytest-related errors',()=>{
0 commit comments