We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dbfcc commit 105a6feCopy full SHA for 105a6fe
tests/test_opendssdirect.py
@@ -208,8 +208,16 @@ def test_configuration():
208
# disabled.
209
assert not dss.Basic.AllowForms(), "Allow forms should be disabled by default"
210
211
- dss.Basic.AllowForms(True)
212
- assert dss.Basic.AllowForms()
+ check_if_true = True
+ try:
213
+ dss.Basic.AllowForms(True)
214
+ except:
215
+ # On Windows, without a console, we cannot activate this.
216
+ # Users can use the callback mechanism to integrate to GUIs though.
217
+ check_if_true = False
218
+
219
+ if check_if_true:
220
+ assert dss.Basic.AllowForms()
221
222
dss.Basic.AllowForms(False)
223
assert not dss.Basic.AllowForms()
0 commit comments