Minor fix. See #1711.

This commit is contained in:
Dion Moult
2021-08-31 14:10:43 +10:00
parent 770f35fd97
commit b1b3d7e312
2 changed files with 8 additions and 11 deletions
+3 -1
View File
@@ -78,4 +78,6 @@ jobs:
run: |
cd test
sudo /usr/bin/python tests.py
sudo /usr/bin/python ../src/ifcopenshell-python/ifcopenshell/test_ids.py
cd ../src/ifcopenshell-python
sudo /usr/bin/python -m pip install pytest
make test
+5 -10
View File
@@ -1,16 +1,11 @@
import unittest
from ifcopenshell import ids
# from ids import ids
import requests
import os
import logging
# from xmlschema.validators.exceptions import XMLSchemaChildrenValidationError
import unittest
import tempfile
import requests
import ifcopenshell
from bcf import bcfxml
import tempfile
from ifcopenshell import ids
def read_web_file(URL):
@@ -320,7 +315,7 @@ class TestIdsReporting(unittest.TestCase):
def test_bcf_report(self):
ids_file = ids.ids.open(read_web_file(self.IDS_URL))
fn = tempfile.gettempdir() + r"\bcf_test.bcfzip"
fn = os.path.join(tempfile.gettempdir(), "test.bcf")
bcf_handler = ids.BcfHandler(project_name="Default IDS Project", author="your@email.com", filepath=fn)
self.logger.addHandler(bcf_handler)
ids_file.validate(self.ifc_file, self.logger)