diff --git a/src/pyodide/demo-app/tests/missing_files.py b/src/pyodide/demo-app/tests/missing_files.py new file mode 100644 index 0000000000..e42b552c50 --- /dev/null +++ b/src/pyodide/demo-app/tests/missing_files.py @@ -0,0 +1,29 @@ +async def test_pset(): + import ifcopenshell.api.pset + import ifcopenshell.api.material + errors = [] + try: + model = ifcopenshell.file() + + steel_material = ifcopenshell.api.material.add_material(model, name="S355 Steel") + steel_pset = ifcopenshell.api.pset.add_pset(model, + product=steel_material, + name="Pset_MaterialSteel") + + ifcopenshell.api.pset.edit_pset(model, + pset=steel_pset, + properties={ + "YieldStress": 355*(10**6), # Pa (355 MPa) + }) + except Exception as e: + errors.append(f"API Error: {e}") + return errors + +async def test_doc(): + import ifcopenshell.util.doc + errors = [] + try: + ifcopenshell.util.doc.get_entity_doc("IFC4", "IfcWall", recursive=True) + except Exception as e: + errors.append(f"Doc API Error: {e}") + return errors diff --git a/src/pyodide/demo-app/tests/missing_files_issue.html b/src/pyodide/demo-app/tests/missing_files_issue.html new file mode 100644 index 0000000000..724bfa7185 --- /dev/null +++ b/src/pyodide/demo-app/tests/missing_files_issue.html @@ -0,0 +1,61 @@ + + + +
+ +