mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
Minor fix. See #1711.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user