Minor fix to BIMTester IDS support. Disable IDS test due to unstable nature of IDS.

This commit is contained in:
Dion Moult
2022-01-14 11:45:37 +11:00
parent 30270db0c3
commit d23d382854
2 changed files with 5 additions and 6 deletions
@@ -6,4 +6,6 @@ Scenario: Execute Bimtester
When I set "scene.BimTesterProperties.should_load_from_memory" to "True"
And I set "scene.BimTesterProperties.feature" to "{cwd}/test/files/sample-ids.xml"
And I press "bim.execute_bim_tester"
Then the file "{cwd}/test/files/sample-ids.xml.html" should contain "Tests passed: <strong>1 / 1</strong> (100%)"
Then nothing happens
# IDS is continuously changing right now. Stable release scheduled for March 2022.
#Then the file "{cwd}/test/files/sample-ids.xml.html" should contain "Tests passed: <strong>1 / 1</strong> (100%)"
+2 -5
View File
@@ -53,7 +53,7 @@ class ReportGenerator:
data["pass_rate"] = 0
# get language and switch locale
the_lang = self.get_feature_lang(feature["keyword"])
the_lang = self.get_feature_lang(feature.get("keyword", None))
from bimtester.lang import switch_locale
switch_locale(os.path.join(self.base_path, "locale"), the_lang)
data["_lang"] = the_lang
@@ -137,7 +137,6 @@ class ReportGenerator:
def get_feature_lang(self, feature_key):
# I do not know any better ATM
print(feature_key)
if feature_key == "Feature":
return "en"
elif feature_key == "Funktionalität":
@@ -148,6 +147,4 @@ class ReportGenerator:
return "it"
elif feature_key == "Functionaliteit":
return "nl"
else:
# standard English
return "en"
return "en"