Repositories / agent-snapshot.git

test_programs/read_ignored_paths.py

Clone (read-only): git clone http://git.guha-anderson.com/git/agent-snapshot.git

Branch
409 bytes · a78d26fbe0b2
import os from pathlib import Path testdata = Path(os.environ["AGENT_SNAPSHOT_TEST_REPO"]) config_home = Path(os.environ.get("XDG_CONFIG_HOME", Path(os.environ["HOME"]) / ".config")) ignore_config = config_home / "agent-snapshot" / "ignore.json" (testdata / "clean.txt").read_text() (testdata / "ignored_file.txt").read_text() (testdata / "ignored_dir" / "nested.txt").read_text() ignore_config.read_text()