Fix failing test by bumping commit ref #7193

This commit is contained in:
Thomas Krijnen
2025-11-07 10:59:10 +01:00
parent 862713cda4
commit 6dd34b1fa4
2 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ PLATFORMTAG:=win_amd64
endif
BINARY_VERSION:=0.8.4
BUILD_COMMIT:=6924012
BUILD_COMMIT:=c9df87f
IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip
IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip
+14 -4
View File
@@ -18,9 +18,15 @@
import http.client
from pathlib import Path
from typing import Sequence
from typing_extensions import assert_never
from urllib.parse import urlparse
try:
from bs4 import BeautifulSoup
except:
pass
# Where it's also reflected:
# - .github/workflows/ci-ifcopenshell-python.yml
# - .github/workflows/ci-ifcopenshell-python-pypi.yml
@@ -91,9 +97,13 @@ class TestPackageSupportedPlatforms:
required_urls.append(url)
# Verify all required URLs are present in the build HTML.
missing_urls: list[str] = []
for url in required_urls:
if url not in build_html:
missing_urls.append(url)
missing_urls: Sequence[str]
if "BeautifulSoup" in globals():
missing_urls = set(required_urls) - set(a["href"] for a in BeautifulSoup(build_html).find_all("a"))
else:
missing_urls = []
for url in required_urls:
if url not in build_html:
missing_urls.append(url)
assert not missing_urls