Skip to content

Commit 9fde718

Browse files
moorec-awsjblagden
authored andcommitted
chore(deps): update pytest to 8.3.* (OpenJobDescription#193)
Signed-off-by: Charles Moore <122481442+moorec-aws@users.noreply.github.com> Signed-off-by: Justin Blagden <jblagden@users.noreply.github.com>
1 parent f9010ea commit 9fde718

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

requirements-testing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
coverage[toml] == 7.*
22
coverage-conditional-plugin == 0.9.0
3-
pytest == 7.4.*
3+
pytest == 8.3.*
44
pytest-cov == 6.1.*
55
pytest-timeout == 2.4.*
66
pytest-xdist == 3.6.*

test/openjd/adaptor_runtime/integ/background/test_background_mode.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@
2929

3030
mod_path = (Path(__file__).parent.parent).resolve()
3131
sys.path.append(str(mod_path))
32+
3233
if (_pypath := os.environ.get("PYTHONPATH")) is not None:
3334
os.environ["PYTHONPATH"] = os.pathsep.join((_pypath, str(mod_path)))
3435
else:
3536
os.environ["PYTHONPATH"] = str(mod_path)
37+
38+
# Add the module path to PYTHONPATH for subprocesses
39+
os.environ["PYTEST_XDIST_WORKER_PYTHONPATH"] = str(mod_path)
40+
3641
from AdaptorExample import AdaptorExample # noqa: E402
3742

3843

test/openjd/adaptor_runtime/integ/test_integration_entrypoint.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@
2020

2121
mod_path = Path(__file__).parent.resolve()
2222
sys.path.append(str(mod_path))
23+
2324
if (_pypath := os.environ.get("PYTHONPATH")) is not None:
24-
os.environ["PYTHONPATH"] = ":".join((_pypath, str(mod_path)))
25+
os.environ["PYTHONPATH"] = os.pathsep.join([_pypath, str(mod_path)])
2526
else:
2627
os.environ["PYTHONPATH"] = str(mod_path)
28+
29+
# Add the module path to PYTHONPATH for subprocesses
30+
os.environ["PYTEST_XDIST_WORKER_PYTHONPATH"] = str(mod_path)
31+
2732
from CommandAdaptorExample import CommandAdaptorExample # noqa: E402
2833

2934

0 commit comments

Comments
 (0)