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
+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"