Skip to content

Commit

Permalink
tests: docs: Support for conda test execution via addition of PYTHONPATH
Browse files Browse the repository at this point in the history
To ensure scitt_emulator module can be found

Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Nov 22, 2023
1 parent af6ba03 commit 706cf17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def poll_workspace(config, stop_event):
env = {
**os.environ,
"SCHEMA_PATH": str(config["schema_path"].resolve()),
"PYTHONPATH": ":".join(
os.environ.get("PYTHONPATH", "").split(":")
+ [str(pathlib.Path(__file__).parents[1].resolve())]
),
}
exit_code = 0
try:
Expand Down

0 comments on commit 706cf17

Please sign in to comment.