mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
Minor fix. See #1711.
This commit is contained in:
@@ -78,4 +78,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd test
|
cd test
|
||||||
sudo /usr/bin/python tests.py
|
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
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
import unittest
|
|
||||||
from ifcopenshell import ids
|
|
||||||
|
|
||||||
# from ids import ids
|
|
||||||
import requests
|
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
import unittest
|
||||||
# from xmlschema.validators.exceptions import XMLSchemaChildrenValidationError
|
import tempfile
|
||||||
|
import requests
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
from bcf import bcfxml
|
from bcf import bcfxml
|
||||||
|
from ifcopenshell import ids
|
||||||
import tempfile
|
|
||||||
|
|
||||||
|
|
||||||
def read_web_file(URL):
|
def read_web_file(URL):
|
||||||
@@ -320,7 +315,7 @@ class TestIdsReporting(unittest.TestCase):
|
|||||||
|
|
||||||
def test_bcf_report(self):
|
def test_bcf_report(self):
|
||||||
ids_file = ids.ids.open(read_web_file(self.IDS_URL))
|
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)
|
bcf_handler = ids.BcfHandler(project_name="Default IDS Project", author="your@email.com", filepath=fn)
|
||||||
self.logger.addHandler(bcf_handler)
|
self.logger.addHandler(bcf_handler)
|
||||||
ids_file.validate(self.ifc_file, self.logger)
|
ids_file.validate(self.ifc_file, self.logger)
|
||||||
|
|||||||
Reference in New Issue
Block a user