repo2docker/tests/venv/usr-bin/verify

8 wiersze
291 B
Python
Executable File

#!/usr/bin/env python
# Verify that ~/.local/bin & REPO_DIR/.local/bin is on the PATH
import os
assert os.path.expanduser("~/.local/bin") in os.getenv("PATH"), os.getenv("PATH")
assert os.getcwd() == os.environ["REPO_DIR"]
assert f'{os.environ["REPO_DIR"]}/.local/bin' in os.getenv("PATH")