From d249a26ea3217a96ef8ce34a564aa3070bc1479a Mon Sep 17 00:00:00 2001 From: vbarda Date: Mon, 29 Jul 2024 13:43:52 -0400 Subject: [PATCH] tests --- backend/Makefile | 4 ++-- compose.override.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Makefile b/backend/Makefile index 7bb7465ca..d3217bb55 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -18,11 +18,11 @@ start: test: # We need to update handling of env variables for tests - YDC_API_KEY=placeholder OPENAI_API_KEY=placeholder LANGGRAPH_URL=http://localhost:8123 PGVECTOR_URI=postgresql+psycopg2://postgres:postgres@localhost:5433/postgres?sslmode=disable poetry run pytest $(TEST_FILE) + OPENAI_API_KEY=placeholder LANGGRAPH_URL=http://localhost:8123 POSTGRES_URI=postgresql+psycopg2://postgres:postgres@localhost:5433/postgres?sslmode=disable poetry run pytest $(TEST_FILE) test_watch: # We need to update handling of env variables for tests - YDC_API_KEY=placeholder OPENAI_API_KEY=placeholder LANGGRAPH_URL=http://localhost:8123 PGVECTOR_URI=postgresql+psycopg2://postgres:postgres@localhost:5433/postgres?sslmode=disable poetry run ptw . -- $(TEST_FILE) + OPENAI_API_KEY=placeholder LANGGRAPH_URL=http://localhost:8123 POSTGRES_URI=postgresql+psycopg2://postgres:postgres@localhost:5433/postgres?sslmode=disable poetry run ptw . -- $(TEST_FILE) ###################### # LINTING AND FORMATTING diff --git a/compose.override.yml b/compose.override.yml index 9e22b1cde..eaecdbdfb 100644 --- a/compose.override.yml +++ b/compose.override.yml @@ -36,7 +36,7 @@ services: volumes: - ./backend:/backend environment: - PGVECTOR_URI: "postgresql+psycopg2://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable" + POSTGRES_URI: "postgresql+psycopg2://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable" LANGGRAPH_URL: "http://langgraph-api:8000" command: - --reload