diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d93f0d2ad..2d67b13540 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/src/ifcopenshell-python/test/test_ids.py b/src/ifcopenshell-python/test/test_ids.py index 83c148350a..a0c181c049 100644 --- a/src/ifcopenshell-python/test/test_ids.py +++ b/src/ifcopenshell-python/test/test_ids.py @@ -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)