mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix failing test by bumping commit ref #7193
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user