test_n8n_client_config.py 437 B

1234567891011
  1. from pathlib import Path
  2. def test_n8n_client_ignores_placeholder_runtime_config():
  3. client_path = Path(__file__).resolve().parents[1] / "app/core/data_factory/n8n_client.py"
  4. source = client_path.read_text(encoding="utf-8")
  5. assert "https://n8n.example.com" in source
  6. assert "replace-n8n-api-key" in source
  7. assert "DEFAULT_N8N_API_KEY" in source
  8. assert 'DEFAULT_N8N_API_URL = "https://n8n.citupro.com"' in source