From 5b04ea42be11507eca4109ec0fe9ec51103b1694 Mon Sep 17 00:00:00 2001 From: Stu Alexandere Date: Thu, 18 Dec 2025 19:08:32 +0000 Subject: [PATCH] fix test env --- backends/advanced/docker-compose.yml | 3 ++- tests/infrastructure/infra_tests.robot | 3 ++- tests/setup/test_env.py | 18 ------------------ 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/backends/advanced/docker-compose.yml b/backends/advanced/docker-compose.yml index 8d4bc42f..5f84d1d3 100644 --- a/backends/advanced/docker-compose.yml +++ b/backends/advanced/docker-compose.yml @@ -224,9 +224,10 @@ services: # Shared network for cross-project communication networks: - default: + chronicle-network: name: chronicle-network + volumes: ollama_data: driver: local diff --git a/tests/infrastructure/infra_tests.robot b/tests/infrastructure/infra_tests.robot index 48b1a057..bc4dd286 100644 --- a/tests/infrastructure/infra_tests.robot +++ b/tests/infrastructure/infra_tests.robot @@ -163,7 +163,8 @@ Worker Registration Loss Detection Test END # Cleanup: Always restart workers after this test to ensure subsequent tests work - [Teardown] Run Keywords + [Teardown] + ... Run Keywords ... Log To Console \n🧹 Cleanup: Restarting workers for subsequent tests ... AND Restart Workers Container diff --git a/tests/setup/test_env.py b/tests/setup/test_env.py index 7e3ca983..8af9777d 100644 --- a/tests/setup/test_env.py +++ b/tests/setup/test_env.py @@ -3,24 +3,6 @@ from pathlib import Path from dotenv import load_dotenv -# Load .env file from backends/advanced directory if it exists -# This allows tests to work when run from VSCode or command line -# def load_env_file(): -# """Load environment variables from .env file if it exists.""" -# # Look for .env in backends/advanced directory -# env_file = Path(__file__).parent.parent.parent / "backends" / "advanced" / ".env" -# if env_file.exists(): -# with open(env_file) as f: -# for line in f: -# line = line.strip() -# if line and not line.startswith('#') and '=' in line: -# key, value = line.split('=', 1) -# # Only set if not already in environment (CI takes precedence) -# if key not in os.environ: -# os.environ[key] = value - -# Load .env file (CI environment variables take precedence) -# load_env_file() # Load .env from backends/advanced directory to get COMPOSE_PROJECT_NAME backend_env_path = Path(__file__).resolve().parents[2] / "backends" / "advanced" / ".env"