Skip to content

Commit

Permalink
Merge pull request #337 from chaen/httpx_0.28.0
Browse files Browse the repository at this point in the history
Fix for httpx 0.28.0
  • Loading branch information
chrisburr authored Dec 3, 2024
2 parents 34095d8 + 31df9fd commit 50cf191
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 50cf191

Please sign in to comment.