Skip to content

Commit d3fdff2

Browse files
add streamline changes do my bimtester 4
1 parent 68310b6 commit d3fdff2

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/ifcbimtester/bimtester/features/logfile.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ def append_logfile(thecontext, step):
3838
logfile = open(thecontext.thelogfile, "a")
3939
logfile.write("\n\nStep '{}' failed\n".format(step.name))
4040
if hasattr(thecontext, "falseelems"):
41-
logfile.write("{}\n".format(
42-
json.dumps(thecontext.falseelems, indent=4)
43-
))
41+
logfile.write("{}\n".format(json.dumps(thecontext.falseelems, indent=4)))
4442
if hasattr(thecontext, "falseprops"):
45-
logfile.write("{}\n".format(
46-
json.dumps(thecontext.falseprops, indent=4)
47-
))
43+
logfile.write("{}\n".format(json.dumps(thecontext.falseprops, indent=4)))
4844
logfile.close()

src/ifcbimtester/bimtester/features/steps/application/en.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ def step_impl(context, version):
5656

5757

5858
@step('IFC data header must have a file description of "{header_file_description}"')
59+
5960
def step_impl(context, header_file_description):
6061

6162
actual_header_file_description = str(IfcStore.file.wrapped_data.header.file_description.description)
6263
assert actual_header_file_description == header_file_description , (
63-
"The file was not exported by the new ifc exporter in Allplan. File description header: {}"
64+
"The data header has not the espected file description header: {}"
6465
.format(actual_header_file_description)
6566
)
6667

src/ifcbimtester/examples/step_code/aggregation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def check_if_element_exists_by_types_with_attribute_name(ifc_types, attribute_na
139139
assert not errors, "Errors occured:\n{}".format("\n".join(errors))
140140

141141

142-
class TableModel(object):
142+
class TableModel:
143143
"""This class represents a table of data."""
144144

145145
def __init__(self):

0 commit comments

Comments
 (0)