diff --git a/libs/langgraph/Makefile b/libs/langgraph/Makefile index feecd3fba..1500c84ef 100644 --- a/libs/langgraph/Makefile +++ b/libs/langgraph/Makefile @@ -20,16 +20,18 @@ start-postgres: stop-postgres: docker compose -f tests/compose-postgres.yml down +TEST_PATH ?= . + test: make start-postgres; \ - poetry run pytest; \ + poetry run pytest $(TEST_PATH); \ EXIT_CODE=$$?; \ make stop-postgres; \ exit $$EXIT_CODE test_watch: make start-postgres; \ - poetry run ptw .; \ + poetry run ptw . -- --ff -v -x -n auto --dist worksteal --snapshot-update --tb short $(TEST_PATH); \ EXIT_CODE=$$?; \ make stop-postgres; \ exit $$EXIT_CODE diff --git a/libs/langgraph/pyproject.toml b/libs/langgraph/pyproject.toml index 8d1dfd694..de8d1fcd7 100644 --- a/libs/langgraph/pyproject.toml +++ b/libs/langgraph/pyproject.toml @@ -66,7 +66,6 @@ omit = ["tests/*"] [tool.pytest-watcher] now = true delay = 0.1 -runner_args = ["--ff", "-v", "-x", "-n", "auto", "--dist", "worksteal", "--snapshot-update", "--tb", "short"] patterns = ["*.py"] [build-system]