Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for httpx 0.28.0 #337

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion diracx-testing/src/diracx/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import contextlib
import os
import re
import ssl
import subprocess
from datetime import datetime, timedelta, timezone
from functools import partial
Expand Down Expand Up @@ -516,7 +517,11 @@ def cli_env(monkeypatch, tmp_path, demo_urls, demo_dir):
raise RuntimeError(f"Could not find {ca_path}, is the demo running?")

# Ensure the demo is working
r = httpx.get(f"{diracx_url}/api/openapi.json", verify=ca_path)

r = httpx.get(
f"{diracx_url}/api/openapi.json",
verify=ssl.create_default_context(cafile=ca_path),
)
r.raise_for_status()
assert r.json()["info"]["title"] == "Dirac"

Expand Down
Loading